Author Topic: Change default browser in openbox [Solved]  (Read 5340 times)

Offline kc1di

  • Sr. Member
  • ****
  • Posts: 484
  • Morse Code early digital communication medium!
Change default browser in openbox [Solved]
« on: October 22, 2011, 05:50:36 PM »
How do I change the default browser in openbox?
Thanks,
dave
 ???
« Last Edit: October 24, 2011, 11:23:59 AM by kc1di »
Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: Change default browser in openbox
« Reply #1 on: October 22, 2011, 06:01:38 PM »
I think you mean the "Browser" in the main menu. Open ~/.config/openbox/menu.xml in a text editor. Scroll about halfway down and you'll see a section with <menu id = "root-menu" label="Openbox 3">. Look for the line <item label="Web Browser">. The next line down, beginning with <action name=, you'll see the name of the web browser being called. Change just the name of the executable that calls the browser you want. For example, to call Firefox, the line would read:

<action name="Execute"><command>firefox</command></action>

(~ is your home directory)


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline kc1di

  • Sr. Member
  • ****
  • Posts: 484
  • Morse Code early digital communication medium!
Re: Change default browser in openbox
« Reply #2 on: October 22, 2011, 06:32:30 PM »
Thanks for the reply djohnston,
But that did not seem to work.
 ???
Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: Change default browser in openbox
« Reply #3 on: October 22, 2011, 06:33:17 PM »
Log out and log back in.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline kc1di

  • Sr. Member
  • ****
  • Posts: 484
  • Morse Code early digital communication medium!
Re: Change default browser in openbox
« Reply #4 on: October 22, 2011, 06:39:59 PM »
did that still didn't work.
When I click on a link in Slypheed it always opens firefox. I was trying to get it to use Chromium.
it's not big deal just wanted to change it .
Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: Change default browser in openbox
« Reply #5 on: October 22, 2011, 07:55:27 PM »

When I click on a link in Slypheed it always opens firefox. I was trying to get it to use Chromium.
it's not big deal just wanted to change it .


Okay, that's a totally different situation than the one I described, which is changing the Web Browser called from the Openbox menu.

Look at Sylpheed Claw's settings.

EDIT: You don't change Openbox settings. You change the browser's. Start Chromium. Find the option to make it the default browser and set it. (I don't know where the option is.)



« Last Edit: October 22, 2011, 08:50:29 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Change default browser in openbox
« Reply #6 on: October 23, 2011, 01:34:49 AM »
Try this:     
In your terminal
Code: [Select]
libfm-pref-apps     
This will launch libfm's preferred applications wizard. (Libfm is the lib for PCManFM.) Enter chromium-browser in the web browser field.     

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Change default browser in openbox
« Reply #7 on: October 23, 2011, 02:28:45 AM »
I'm not sure what the issue with Chromium-browser is, but Neal's suggestion didn't work for me, and if you go into Chromium's preferences it states "Chromium cannot determine or set the default browser".  It is something I noticed a while ago as other browsers give you the option of setting them as default.

PS - don't apt-get install Chromium - you wind up with a @#$%& game :o ::) ;D
Linux Registered User # 529407


Offline kc1di

  • Sr. Member
  • ****
  • Posts: 484
  • Morse Code early digital communication medium!
Re: Change default browser in openbox
« Reply #8 on: October 23, 2011, 02:49:26 AM »
I'm not sure what the issue with Chromium-browser is, but Neal's suggestion didn't work for me, and if you go into Chromium's preferences it states "Chromium cannot determine or set the default browser".  It is something I noticed a while ago as other browsers give you the option of setting them as default.

PS - don't apt-get install Chromium - you wind up with a @#$%& game :o ::) ;D

Yes that the same problem I'm experiencing haven't had a chance to try Neal's fix yet will later today. (Thank you Neal)
Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608

Offline marcin82

  • Full Member
  • ***
  • Posts: 133
  • Jest wirek - jest impreza ;]
Re: Change default browser in openbox
« Reply #9 on: October 23, 2011, 03:08:45 AM »
Check out if you have installed package:
Code: [Select]
update-alternativesIf the package is installed simply type (#):
Code: [Select]
update-alternatives --config x-www-browserand choose default browser ;]
marcin'82

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: Change default browser in openbox
« Reply #10 on: October 23, 2011, 03:31:31 AM »
This was done on my Openbox installation:

[darrel@Duron ~]$ update-alternatives --config x-www-browser
No alternatives for x-www-browser.
update-alternatives: unable to open /var/lib/rpm/alternatives/x-www-browser.rpm-new for write: Permission denied
[darrel@Duron ~]$ su
Password:
[root@Duron darrel]# update-alternatives --config x-www-browser
No alternatives for x-www-browser.
[root@Duron darrel]#

If Neal's method doesn't work, try adding export BROWSER="/usr/bin/google-chrome" to the end of your ~/.bashrc file. I'm not sure of the path or executable filename for Chromium, so you'll have to substitute it for "/usr/bin/google-chrome". I believe this should work for LXDE, as well.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Change default browser in openbox
« Reply #11 on: October 23, 2011, 04:34:00 AM »
"google-chrome" won't work. The browser's name is "chromium-browser."    
So /usr/bin/chromium-browser would be the path.     
« Last Edit: October 23, 2011, 04:44:47 AM by Neal »

Offline kc1di

  • Sr. Member
  • ****
  • Posts: 484
  • Morse Code early digital communication medium!
Re: Change default browser in openbox
« Reply #12 on: October 23, 2011, 05:57:37 AM »
Thanks guys for all the suggestions so far no gold star though FF is still the default browser.

Will keep looking got to be some way to do it in openbox.

Dave
Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Change default browser in openbox
« Reply #13 on: October 23, 2011, 06:20:49 AM »
Yep, tried marcin82's idea - no go.  Tried djohnston's ~/.bashrc file idea with "chromium-browser" - no go.  Tried FF as default browser - bingo, it works.  The problem seems to lie with Chromium.  I did a bit of googling - this is not an uncommon issue - and found this - http://crunchbanglinux.org/forums/topic/13777/solved-wrong-web-browser-launched-ie-not-the-default-web-browser/.  Feel free to wade through it - it gets more interesting as you go.  I'm still trying to digest it!!     
Linux Registered User # 529407


Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Change default browser in openbox
« Reply #14 on: October 23, 2011, 06:37:58 AM »
Got it!!  Found the answer here - http://www.andyheasman.com/linux/cookbook.htm.  Make sure gconf is installed, then launch Chromium from the terminal with "GNOME_DESKTOP_SESSION_ID=1 chromium-browser".  Chromium will launch with a pulldown menu that asks if you want it to be the default browser.  Click yes and all will be set.  Now links in Thunderbird open automatically in Chromium!  Give it a go - it worked for me.  Solves a minor irritant I've been putting up with for some time.

Note - kc1di - no such thing as a silly question ;D.  Well done.     
Linux Registered User # 529407