You are not logged in.

#1 2010-01-11 16:10:51

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Openbox http handler

How can I tell apps running under Openbox to use Chromium instead of Firefox as the browser to open when an http link is clicked on? IOW, how do I tell Openbox what my default browser is. Or is that not something that Openbox deals with?

Offline

#2 2010-01-11 16:15:26

JuseBox
Member
Registered: 2009-11-27
Posts: 260

Re: Openbox http handler

What ever browser you are using in the settings has an option to check. then it should use that if checked.


Linux ArchLinux 3.2.8-1-ARCH
#1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012 x86_64 AMD FX(tm)-8120 Eight-Core Processor AuthenticAMD GNU/Linux
8192MB DDR3 1300MHz | Asus m5a97 | GeForce GTX 550 Ti | 120 GB SSD

Offline

#3 2010-01-11 16:40:54

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: Openbox http handler

Just one little problem with that:
ZcytD.png

Firefox does not seem to have this issue


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#4 2010-01-11 17:15:27

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: Openbox http handler

You need two things: export DE=xfce permanently in your environment (you can put this in .config/openbox/autostart.sh so it will be set every time you start openbox-session) and xfce-settings package.

Then start xfce4-settings-manager. Go to preferred applications and set your browser of choice. I'm not sure but maybe you'll need xdg-utils package also.

Last edited by ArchArael (2010-01-11 17:21:30)

Offline

#5 2010-01-11 17:27:06

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Openbox http handler

All you need is Exo, and to set Chromium as default in exo-preferred-applications, and you'll be good.

Last edited by Wintervenom (2010-01-11 17:28:13)

Offline

#6 2010-01-11 20:23:45

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Openbox http handler

that seems to work for Chromium & Choqok, but Thunderbird links are still opening in Firefox. At least the link drag'n'drop works fine.

Offline

#7 2010-01-11 20:24:23

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: Openbox http handler

Wintervenom wrote:

All you need is Exo, and to set Chromium as default in exo-preferred-applications, and you'll be good.

Ah...I see now. The icon Preferred applications in the xfce4-settings-manager starts exo-preferred-applications. Thank you for this information. This makes xfce4-settings obsolete on my machine. smile

Offline

#8 2010-01-11 20:54:23

sctincman
Member
From: CO (USA)
Registered: 2009-04-08
Posts: 85

Re: Openbox http handler

Thunderbird might have to be told to use the desktop default in a settings panel, and if that doesn't work, you could try setting it manually and putting in the command "exo-open --launch=WebBrowser" if you're using the xfce/exo approach

Offline

#9 2010-01-11 22:35:12

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: Openbox http handler

exo-preferred-applications didn't list Chromium as an option (only Firefox) so I chose other and pointed it to /usr/bin/chromium-browser. However, Pidgin still opens links with Firefox (even though instructed to use the default browser). Also, Firefox itself seems to believe it is the default browser.

I didn't add the DE=xfce line, seeing my desktop environment is not xfce.

What do I do now? How does the system even determine default applications (as in URL handlers and MIME apps)? When I download something in Chromium and try to open it, it always tries to use Firefox to open it. Firefox has absolutely no default programs to open anything with, it just gives me the option to save something or choose a program from /usr/bin. How do I setup the default programs in a DE-less environment?

Last edited by robrene (2010-01-11 22:35:35)


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#10 2010-01-12 08:15:09

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: Openbox http handler

robrene wrote:

I didn't add the DE=xfce line, seeing my desktop environment is not xfce.

I also use openbox and DE=xfce is just to make applications read xfce settings (in my case every application (skype, thunderbird, terminal ecc) opens links in my default browser which is defined in exo preferences panel). Exporting this variable doesn't affect your openbox session at all.

Offline

#11 2010-01-12 13:49:07

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: Openbox http handler

Alright. Just curious though, what other options do I have instead of xfce? I've read about xdg instead of exo for example, but that project doesn't seem very mature yet. What are the other possibilities?


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#12 2010-01-12 13:59:45

Knives
Member
Registered: 2008-12-26
Posts: 25

Offline

Board footer

Powered by FluxBB