You are not logged in.

#1 2010-12-16 13:07:28

itti
Member
Registered: 2007-06-01
Posts: 77

[SOLVED] Applications open links in wrong browser

Hi,

For some reason all links I open in applications (like pidgin or intellij) now open in firefox despite my default browser is chromium. By "default-browser" I mean that both in the gnome settings and the xfce-settings chromium is specified as browser to use. xdg-open, gnome-open, gvfs-open and exo-open all do the right thing and open urls in chromium. For some reason this is not the case if I click a link in an application. I have set $DE to "xfce" and $BROWSER to "chromium". I am a fluxbox user.

Last edited by itti (2010-12-23 21:59:14)

Offline

#2 2010-12-16 13:12:21

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: [SOLVED] Applications open links in wrong browser

have you had a look for specific configs of these progs? maybe pidgin/... has it's own standard browser independ from global variables like $DE or $BROWSER.

Offline

#3 2010-12-16 13:36:07

itti
Member
Registered: 2007-06-01
Posts: 77

Re: [SOLVED] Applications open links in wrong browser

Now its getting strange. pidgin does have an browser option. This was set to "default browser". I did change it to "custom" with the command line:

xdg-open %s

It still opens links in firefox. This leads me to believe that for some reason xdg-open behaves differently when called by applications instead of beeing invoked in a terminal.

on a sidenote:

[itti@machine ~]$ xdg-settings get default-web-browser
chromium.desktop

Offline

#4 2010-12-16 13:39:00

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: [SOLVED] Applications open links in wrong browser

hm...what about your mime config?

Offline

#5 2010-12-17 12:39:54

itti
Member
Registered: 2007-06-01
Posts: 77

Re: [SOLVED] Applications open links in wrong browser

I don't know what information would be neccessary. A few pastes:

~/.local/share/applications/defaults.list

[Default Applications]
application/vnd.openxmlformats-officedocument.wordprocessingml.document=writer.desktop
image/jpeg=geeqie.desktop
video/x-msvideo=vlc.desktop
text/x-sql=gvim.desktop
application/vnd.oasis.opendocument.spreadsheet=calc.desktop
text/plain=gvim.desktop
text/html=chromium.desktop
application/x-chm=gnochm.desktop
application/pdf=evince.desktop
application/xml=gvim.desktop
application/zip=xarchiver.desktop
[itti@machine ~]$ desktop-file-validate /usr/share/applications/chromium.desktop 
[itti@machine ~]$ echo $?
0

Last edited by itti (2010-12-17 12:40:13)

Offline

#6 2010-12-18 10:01:45

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [SOLVED] Applications open links in wrong browser

For investigation you can change it to "custom" and value: gnome-terminal
When you click a link, the terminal will start and you can run "xdg-open" or "env" and compare the environmet


Arch 64, xfce4

Offline

#7 2010-12-18 23:50:04

itti
Member
Registered: 2007-06-01
Posts: 77

Re: [SOLVED] Applications open links in wrong browser

Thats a good idea. I will see when I'm back at the machine (it's my arch box at work).

Offline

#8 2010-12-22 14:13:32

itti
Member
Registered: 2007-06-01
Posts: 77

Re: [SOLVED] Applications open links in wrong browser

I checked back but cannot find anything different... if I let pidgin run xterm xdg-open it openes the url in chromium like expected. I don't get it. Is there something I have to set up for xdg to work? As I said I'm a fluxbox user and every now and then there seem to be changes around the area of dbus, gnome-settings-daemon, ck-session etc. I have to sort out for my wm to keep working. So is there another new daemon or config file or something I might be magically missing?

Update:

Now I got it solved out... I should read more Archwiki. There is actually a site about chromium. The following advice helped:

Use part of a desktop environment, specifically, the part which includes the file opener; for gnome, that would be 'libgnome' (and its dependencies), for xfce, 'exo'. The $DE environment variable needs to be exported before starting the window manager.

i moved my

export DE=xfce

from .bashrc to .xinitrc and now everything works again like it did before. links do open in default browser now and on top of that even chromium was able to set itself als the "default browser". an option that was unavailable till now.

Last edited by itti (2010-12-22 14:29:30)

Offline

Board footer

Powered by FluxBB