You are not logged in.

#1 2012-05-19 03:21:05

Carlinhos
Member
Registered: 2011-07-08
Posts: 41

Can't open links through applications - xdg-open default browser?

Trying to open a link through an application such as Pidgin gives me the following error:

/usr/bin/xdg-open: line 478: firefox: command not found
/usr/bin/xdg-open: line 478: mozilla: command not found
/usr/bin/xdg-open: line 478: epiphany: command not found
/usr/bin/xdg-open: line 478: konqueror: command not found
/usr/bin/xdg-open: line 478: chromium-browser: command not found
/usr/bin/xdg-open: line 478: google-chrome: command not found
/usr/bin/xdg-open: line 478: links2: command not found
/usr/bin/xdg-open: line 478: links: command not found

...and then shows me the following in the terminal: http://gyazo.com/aa5232a846762f42edc95994f8a2a15c

It doesn't even try to open it with Aurora which is what I have set as my default browser in Xfce settings.

xdg-open http://www.google.com produces the same effect.

This only happens since I did a fresh Arch install a few days ago.

Offline

#2 2012-05-19 04:19:42

MOPSTER
Member
From: Aruba
Registered: 2012-03-26
Posts: 15

Re: Can't open links through applications - xdg-open default browser?

The xfce settings don't use xdg-open, they use exo-open which is a different thing. In this case Pidgin uses xdg-open to open URIs. To make xdg-open use exo-open you could try setting your $DE environment variable to xfce, if you use that. You can find more info at the xdg-open wiki page

Offline

#3 2012-05-19 04:39:25

Carlinhos
Member
Registered: 2011-07-08
Posts: 41

Re: Can't open links through applications - xdg-open default browser?

Adding export DE="xfce" to my ~/.xinitrc doesn't seem to help. I'm using a login manager (LXDM), not sure if that interferes somehow.

Offline

#4 2012-05-19 09:17:14

Juanlu001
Member
From: Madrid, Spain, Europe
Registered: 2010-10-24
Posts: 26

Re: Can't open links through applications - xdg-open default browser?

I have no experience with LXDM, but it seems it doesn't read .xinitrc.

https://bbs.archlinux.org/viewtopic.php?id=129908


Juan Luis Cano
Pybonacci - http://pybonacci.wordpress.com/ Blog about Python and Scientific Computing in Spanish

Offline

#5 2012-05-19 09:19:51

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Can't open links through applications - xdg-open default browser?

LXDM doesn't read your ~/.xinitrc indeed. You want to put the required options in any of the config files in /etc/lxdm (PostLogin in this case probably).


Burninate!

Offline

#6 2012-05-19 10:39:02

Carlinhos
Member
Registered: 2011-07-08
Posts: 41

Re: Can't open links through applications - xdg-open default browser?

Tried adding export DE="xfce" to both PostLogin and PreLogin, problem persists.

Offline

#7 2012-05-19 13:40:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't open links through applications - xdg-open default browser?

There are so many wonderful tools in the *nix community, xdg-open is really not one of them (IMO).  It is drastically overly complex - it's just a really convoluted shell script, open it up in an editor sometime.  This complexity leads to countless situations in which it will produce undesireable behavior.  I may be the least "unix-like" tool on my computer ... or at least it was until I removed it and replaced it with a much simpler version.

Admittedly this is the jumping-ship option.  Or really jumping-ship while tossing a molatov cocktail back to watch the whole ship burn ... but it works.  The skeleton of my replacement script can be found here.  Customize it to your tastes once, then plop it in xdg-open's place and your set.  Just keep a copy around to re-replace xdg-open if/when it gets updated by pacman.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2012-05-19 18:50:30

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Can't open links through applications - xdg-open default browser?

It should still be possible to make the convoluted shell script work. See https://bbs.archlinux.org/viewtopic.php?id=140028 if you're interested.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#9 2012-05-20 00:29:18

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can't open links through applications - xdg-open default browser?

man xdg-settings

Should work so long as aurora.desktop exists.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB