Page 1 of 1

using preferred browser instead of firefox

Posted: 8. Jan 2010, 20:36
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:

Re: using preferred browser instead of firefox

Posted: 8. Jan 2010, 22:43
by gapan
The problem is that this way it will only work in xfce. ;)

Re: using preferred browser instead of firefox

Posted: 9. Jan 2010, 01:05
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.

Re: using preferred browser instead of firefox

Posted: 9. Jan 2010, 21:14
by Duncan_Idaho
ok I get your point,
exo-open would be useless to anyone not using xfce :?

Re: using preferred browser instead of firefox

Posted: 10. Jan 2010, 05:54
by thenktor
We are not Ubuntu :mrgreen: :ugeek: :twisted: :evil: :P 8-) :lol:

Re: using preferred browser instead of firefox

Posted: 11. Jan 2010, 13:40
by JRD
What about xdg-open ? It's freedesktop-compliant.

Re: using preferred browser instead of firefox

Posted: 11. Jan 2010, 13:48
by gapan
JRD wrote:What about xdg-open ? It's freedesktop-compliant.
That's probably a good idea. ;)