Noticed this bug while using Deluge, which uses xdg-open to open a specified directory. I'm running ArchLinux, with Openbox as a WM, no DE, ZSH, Thunar as a file manager. Works as intended if $BROWSER="thunar" is defined within /usr/bin/xdg-open. Also opens directories when I add 'export MANAGER="thunar"' to my ~/.zshrc and replace every instance of 'browser' with 'manager' (from line 361 - 379) in /usr/bin/xdg-open. However, using these workarounds makes opening that which would normally open in Firefox fail.
xdg-user-dirs doesn't include xdg-open, just the tools to maintain user dirs like ~/Desktop ~/Download etc. xdg-open is part of xdg-utils which doesn't seem to have a product on bugs.freedesktop.org.
My appologies for dropping it in the wrong category, I couldn't find the xdg-open/utils product. I see now that xdg-utils is listed as a component of product 'Portland'.
If you can provide some suggested code how xdg-utils can detect your DE/WM choices ... ? :) Then, we'll get somewhere. As it is, the generic fallbacks (ie, which usually ends up trying to launch a generic browser) is about all we can do.
The generic fallbacks behave fine (or will do so once current patches are integrated) once ~/.local/share/applications/defaults.list is set up. Here's how to set up directory handling: xdg-mime default pcmanfm-folder-handler.desktop application/x-directory inode/directory x-directory/normal (this assuming you have the pcmanfm file manager installed AND your distro provides the .desktop files; YMMV) Also see #33094
given comment #4, sounds like we can consider this fixed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.