PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 07:00:57 PM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: Change default browser in openbox [Solved]  (Read 1589 times)
kc1di
Sr. Member
****
Offline Offline

Posts: 438


Morse Code early digital communication medium!


« on: October 22, 2011, 06:50:36 PM »

How do I change the default browser in openbox?
Thanks,
dave
 Huh
Logged

Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5714


I don't do Windows


« 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
Sr. Member
****
Offline Offline

Posts: 438


Morse Code early digital communication medium!


« Reply #2 on: October 22, 2011, 07:32:30 PM »

Thanks for the reply djohnston,
But that did not seem to work.
 Huh
Logged

Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5714


I don't do Windows


« 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
Sr. Member
****
Offline Offline

Posts: 438


Morse Code early digital communication medium!


« 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
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5714


I don't do Windows


« 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 Offline

Posts: 15203


LXDE! Coffee, Bacon and Cheesecake!


« Reply #6 on: October 23, 2011, 02:34:49 AM »

Try this:     
In your terminal
Code:
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

Taco.22
Sr. Member
****
Offline Offline

Posts: 479



« Reply #7 on: October 23, 2011, 03: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 Shocked Roll Eyes Grin
Logged

Linux Registered User # 529407

kc1di
Sr. Member
****
Offline Offline

Posts: 438


Morse Code early digital communication medium!


« 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 Shocked Roll Eyes Grin

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 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:
Code:
update-alternatives
If the package is installed simply type (#):
Code:
update-alternatives --config x-www-browser
and choose default browser ;]
Logged

marcin82
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5714


I don't do Windows


« 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 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
Sr. Member
****
Offline Offline

Posts: 438


Morse Code early digital communication medium!


« 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
Sr. Member
****
Offline Offline

Posts: 479



« Reply #13 on: October 23, 2011, 07: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!!     
Logged

Linux Registered User # 529407

Taco.22
Sr. Member
****
Offline Offline

Posts: 479



« 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 Grin.  Well done.     
Logged

Linux Registered User # 529407

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM