x-www-browser bash command doesnt work in puppy

Using applications, configuring, problems
Post Reply
Message
Author
schober
Posts: 34
Joined: Fri 29 May 2015, 12:00

x-www-browser bash command doesnt work in puppy

#1 Post by schober »

Using this command in the console you can display a url in the current browser (firefox or google)

This works fine on ubuntu - the syntax i use in a bash script is
x-www-browser $url

On puppy however I get "# bash: x-www-browser: command not found"
I'm using Wary 5.3

Any suggestions?

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#2 Post by rockedge »

install Lynx (the text browser) then make a symlink in /usr/bin to it and name it www-browser

you can install Lynx with the Puppy Package Manager ...........that might do it.

schober
Posts: 34
Joined: Fri 29 May 2015, 12:00

#3 Post by schober »

Lynx doesn't display images, so isnt suitable
I'm using Palemoon

xdg-open will display a jpg file in a url but that is about all it does (and it goes into Seamonkey)
It wont display images like this https://tinyurl.com/yc9uwg6u

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

Hello schober.

This is the line that I have in my /root/.Xdefaults file:

Code: Select all

urxvt.url-launcher: defaultbrowser
It launches the full browser I have defined in /usr/local/bin/defaultbrowser when I
click, in console, on a URL.

Had I wanted a less cumbersome and quicker browser such as lynks or links2,
I could have specified

Code: Select all

urxvt.url-launcher: defaulthtmlviewer
This is my file /usr/local/bin/defaulthtmlviewer:

Code: Select all

#!/bin/sh
# defaulthtmlviewer
####
exec links2 -g "$@" 2>/dev/null
# xlinks2, in some packages or compilations
IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

schober
Posts: 34
Joined: Fri 29 May 2015, 12:00

#5 Post by schober »

Adding "urxvt.url-launcher: defaultbrowser" didn't change anything

This command "xdg-open http://www.murga-linux.com/puppy/index.php" works but fails with the url https://tinyurl.com/yc9uwg6u points to

Wheras " x-www-browser http://www.murga-linux.com/puppy/index.php" doesn't work (bash: x-www-browser: command not found)

This command is in ubuntu but not available in the standard version of wary as far as I cansee

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#6 Post by bigpup »

Try:

Code: Select all

defaultbrowser $url
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#7 Post by dancytron »

rockedge wrote:install Lynx (the text browser) then make a symlink in /usr/bin to it and name it www-browser

you can install Lynx with the Puppy Package Manager ...........that might do it.
Have you tried just creating a symlink in /usr/bin to whatever browser you want it to trigger and renaming it x-www-browser (or www-browser, try both).

Also, in Debian, both of those links are in /etc/alternatives and then the x-www-browser is linked to /usr/bin from there. You might look there and see if there is anything.

If you don't figure it out, I'll fire up a more recent puppy and see how it is set up there.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

#8 Post by sheldonisaac »

bigpup wrote:Try:

Code: Select all

defaultbrowser $url
That worked just now with his tinyurl.
Musher0's Xenial, Iron browser.
Dell E6410: BusterPup, BionicPup64, Xenial, etc
Intel DQ35JOE, Dell Vostro 430
Dell Inspiron, Acer Aspire One, EeePC 1018P

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#9 Post by ally »

works also xenial64 7.5 & chrome

:)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

Hi schober.

Replies interspersed.
schober wrote:Adding "urxvt.url-launcher: defaultbrowser" didn't change anything
My bad. Please forgive me. I forgot to mention that every time you edit
.Xresources or .Xdefaults, you need to open a terminal and type

Code: Select all

xrdb ~/.Xresources
or

Code: Select all

xrdb ~/.Xdefaults
(as the case may be).
Otherwise, you have to recycle X to get your edits to these files recognized.
schober wrote:This command "xdg-open http://www.murga-linux.com/puppy/index.php" works but fails with the url https://tinyurl.com/yc9uwg6u points to.
Not Puppy's fault! If you remember the full URL, use that?
schober wrote:Wheras " x-www-browser http://www.murga-linux.com/puppy/index.php" doesn't work (bash: x-www-browser: command not found)
No. That command does not exist on Puppy, don't look for it. As I said above,
we have two equivalents: the commands < defaultbrowser > (for a full-blown
browser) or < defaulthtmlviewer > (for smaller browsers, such as dillo, links2,
netsurf, etc.). In Puppy, forget < x-www-browser >; use < defaultbrowser > or
< defaulthtmlviewer >.
schober wrote:This command is in ubuntu but not available in the standard version of wary as far as I can see
The Ubuntu-derived "breeds" of Puppy such as tahrPup, precisePup and xenialPup
do feed on the Ubuntu repos for apps. However, PuppyLinux has invented
a lot of its own solutions. Surprising as that may sound, PuppyLinux is NOT a
carbon copy of any other distro,

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

schober
Posts: 34
Joined: Fri 29 May 2015, 12:00

#11 Post by schober »

Well well, the line defaultbrowser https://tinyurl.com/yc9uwg6u worked!
Many thanks to all who took an interest
Changing the default browser from Sea monkey to Palemoon is a big improvement - image loads faster
schober

Post Reply