Bug 24930 - xdg-open /path/to/dir/ opens in firefox
Summary: xdg-open /path/to/dir/ opens in firefox
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Alexander Larsson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 33094
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-04 16:05 UTC by Skones
Modified: 2011-04-08 06:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Skones 2009-11-04 16:05:15 UTC
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.
Comment 1 Alexander Larsson 2009-11-05 02:29:24 UTC
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.
Comment 2 Skones 2009-11-05 08:26:08 UTC
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'.
Comment 3 Rex Dieter 2010-07-09 08:03:18 UTC
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.
Comment 4 Dan Muresan 2011-01-15 04:29:20 UTC
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
Comment 5 Rex Dieter 2011-04-08 06:59:08 UTC
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.