|
kc1di
|
 |
« on: October 22, 2011, 06:50:36 PM » |
|
How do I change the default browser in openbox? Thanks, dave 
|
|
|
|
|
Logged
|
Dave KC1DI Living somewhere in Maine USA Morse Code and early digital mode John 3:16 Registered Linux User #462608 
|
|
|
|
djohnston
|
 |
« Reply #1 on: October 22, 2011, 07: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)
|
|
|
|
|
Logged
|
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
|
|
|
|
kc1di
|
 |
« Reply #2 on: October 22, 2011, 07:32:30 PM » |
|
Thanks for the reply djohnston, But that did not seem to work. 
|
|
|
|
|
Logged
|
Dave KC1DI Living somewhere in Maine USA Morse Code and early digital mode John 3:16 Registered Linux User #462608 
|
|
|
|
djohnston
|
 |
« Reply #3 on: October 22, 2011, 07:33:17 PM » |
|
Log out and log back in.
|
|
|
|
|
Logged
|
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
|
|
|
|
kc1di
|
 |
« Reply #4 on: October 22, 2011, 07: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 .
|
|
|
|
|
Logged
|
Dave KC1DI Living somewhere in Maine USA Morse Code and early digital mode John 3:16 Registered Linux User #462608 
|
|
|
|
djohnston
|
 |
« Reply #5 on: October 22, 2011, 08: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.)
|
|
|
|
|
Logged
|
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
|
|
|
Neal ManBear
Administrator
Super Villain
   
Offline
Posts: 15203
LXDE! Coffee, Bacon and Cheesecake!
|
 |
« Reply #6 on: October 23, 2011, 02:34:49 AM » |
|
Try this: In your terminal 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.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
kc1di
|
 |
« Reply #8 on: October 23, 2011, 03: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  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)
|
|
|
|
|
Logged
|
Dave KC1DI Living somewhere in Maine USA Morse Code and early digital mode John 3:16 Registered Linux User #462608 
|
|
|
marcin82
Full Member
 
Offline
Posts: 112
Metal is forever! // Yoda Królem Polski!
|
 |
« Reply #9 on: October 23, 2011, 04:08:45 AM » |
|
Check out if you have installed package: update-alternatives If the package is installed simply type (#): update-alternatives --config x-www-browser and choose default browser ;]
|
|
|
|
|
Logged
|
 marcin82
|
|
|
|
djohnston
|
 |
« Reply #10 on: October 23, 2011, 04: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.
|
|
|
|
|
Logged
|
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
|
|
|
Neal ManBear
Administrator
Super Villain
   
Offline
Posts: 15203
LXDE! Coffee, Bacon and Cheesecake!
|
 |
« Reply #11 on: October 23, 2011, 05:34:00 AM » |
|
"google-chrome" won't work. The browser's name is "chromium-browser." So /usr/bin/chromium-browser would be the path.
|
|
|
|
|
Logged
|
|
|
|
|
kc1di
|
 |
« Reply #12 on: October 23, 2011, 06: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
|
|
|
|
|
Logged
|
Dave KC1DI Living somewhere in Maine USA Morse Code and early digital mode John 3:16 Registered Linux User #462608 
|
|
|
|
|
|
Taco.22
|
 |
« Reply #14 on: October 23, 2011, 07: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  . Well done.
|
|
|
|
|
Logged
|
Linux Registered User # 529407
|
|
|
|