using preferred browser instead of firefox

You think you have found a bug? Let us know about it.
Post Reply
User avatar
Duncan_Idaho
Posts: 216
Joined: 19. Sep 2009, 01:43
Location: Sietch Tabr, Planet Arrakis

using preferred browser instead of firefox

Post by Duncan_Idaho »

greetings, first of all I don't know if this count as a bug, but I think it's an improvement so I post it here. :?

I don't use firefox and I'm tired that every time I click on the desktop shortcut for the irc channel, or the CUPS interface in the menu, it opens firefox instead of whatever browser is my default browser. :evil:
so after fooling around for a bit, I found that exo-open can call a web browser instance, and not just any browser but the one you have selected as default browser in the preferred applications dialog. :mrgreen:
I've tested it changing my default browser and it works just fine
so instead of using

Code: Select all

firefox www.whatever.com
in shorcuts or menu entries, you could use

Code: Select all

exo-open --launch WebBrowser www.whatever.com
to launch in whatever browser is set as default

I hope somebody find this useful :geek:
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: using preferred browser instead of firefox

Post by gapan »

The problem is that this way it will only work in xfce. ;)
Image
Image
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: using preferred browser instead of firefox

Post by Shador »

Exactly. :evil: :mrgreen:
If you really don't want firefox, you could try changing the /usr/bin/firefox symlink to point at your preferred browser. But this is somewhat error prone because for firefox actually valid arguments could become invalid.
Image
User avatar
Duncan_Idaho
Posts: 216
Joined: 19. Sep 2009, 01:43
Location: Sietch Tabr, Planet Arrakis

Re: using preferred browser instead of firefox

Post by Duncan_Idaho »

ok I get your point,
exo-open would be useless to anyone not using xfce :?
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: using preferred browser instead of firefox

Post by thenktor »

We are not Ubuntu :mrgreen: :ugeek: :twisted: :evil: :P 8-) :lol:
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: using preferred browser instead of firefox

Post by JRD »

What about xdg-open ? It's freedesktop-compliant.
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: using preferred browser instead of firefox

Post by gapan »

JRD wrote:What about xdg-open ? It's freedesktop-compliant.
That's probably a good idea. ;)
Image
Image
Post Reply