You are not logged in.

#1 2013-11-09 01:31:23

morganmay
Member
Registered: 2011-09-04
Posts: 13

[SOLVED] xdg-open: no method available for opening

I'm using Openbox. Whenever I try to use xdg-open to open a file or link from the command line, I get the error "xdg-open: no method available for opening". This happens with all files and links, regardless of type. I've tried editing ~/.local/share/applications/mimeapps.list, both manually and with xdg-mime; neither had any effect. I've also tried setting environment variables such as $BROWSER; that had no effect, either.

Strangely, exo-open works with no problem (although the only way I've found to change file associations is by using Thunar). I would just switch to exo-open, except I've encountered a couple of programs that rely on xdg-open for opening web links and the like.

Has anyone else seen this problem? At this point, I'm pretty confused, and I would appreciate any help. Thanks!

Last edited by morganmay (2013-11-19 16:31:08)

Offline

#2 2013-11-09 01:47:54

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

Re: [SOLVED] xdg-open: no method available for opening

Have you investigated the other tools that are packaged with xdg-open e.g. xdg-mime, xdg-settings? You can use the former to display and/or set and/or change associations. They have quite good manual pages and there are debug options you can set for xdg-mime, for example, if there's a problem.


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

#3 2013-11-09 01:51:09

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] xdg-open: no method available for opening

I remember reading about a bug with xdg-open that causes this... but a five second google didn't yield the result I was looking for.

Offline

#4 2013-11-10 16:41:49

morganmay
Member
Registered: 2011-09-04
Posts: 13

Re: [SOLVED] xdg-open: no method available for opening

I've tried setting associations using xdg-mime, but it has no effect. I mean, it works in the sense that the associations appear in mimeapps.list, but xdg-open still returns the "no method available for opening" error. xdg-mime returns no errors.

Offline

#5 2013-11-19 03:50:11

morganmay
Member
Registered: 2011-09-04
Posts: 13

Re: [SOLVED] xdg-open: no method available for opening

Was poking around with this again. I still haven't solved the problem, but I did notice an error that might be a clue. When I enter "xdg-settings get default-url-scheme-handler", I get the error "xdg-settings: unknown desktop environment". I don't have a DE installed, just openbox (although as far as I can tell, XDG doesn't require a DE).

Does anyone know what this means? Searches for this error have only led me to threads recommending solutions that I've already tried without success (editing mimeapps.list, setting environment variables like BROWSER, etc.).

Offline

#6 2013-11-19 04:01:06

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

Re: [SOLVED] xdg-open: no method available for opening

What did you try? For example, did you try https://bugs.archlinux.org/task/29967?


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

#7 2013-11-19 04:23:52

morganmay
Member
Registered: 2011-09-04
Posts: 13

Re: [SOLVED] xdg-open: no method available for opening

Actually, I just had a brainstorm just now and figured it out. Poking around in the xdg-settings script revealed that it was checking the DE environment variable, and it returns that error when it doesn't recognize it. So I checked around, and it turns out that for some reason DE was set to "openbox" in .xinitrc. I'm not sure how or why that happened, but it's not something that xdg-open recognizes. Unsetting that variable fixed the problem.

Thanks for helping!

Offline

#8 2013-11-19 07:47:50

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

Re: [SOLVED] xdg-open: no method available for opening

When DE is not recognized shouldn't xdg-open treat it as it would if unset? Anyway, remember to edit the title to solved.


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

Offline

#9 2013-11-19 16:30:31

morganmay
Member
Registered: 2011-09-04
Posts: 13

Re: [SOLVED] xdg-open: no method available for opening

ConnorBehan wrote:

When DE is not recognized shouldn't xdg-open treat it as it would if unset?

One would think so, but apparently not.

Offline

Board footer

Powered by FluxBB