← Back to team overview

desktop-packages team mailing list archive

[Bug 133133]

 

Currently Firefox 33 is using org.freedesktop.FileManager1 to open a
filemanager. Sadly, only Nautilus implements this interface. It's not
just opening a filemanager but also bidirectional communication with the
caller.

https://bugzilla.opensuse.org/show_bug.cgi?id=904229#c2

Is Firefox using this bidirectional communication feature or something
else, special from org.freedesktop.FileManager1 ?


If Firefox isn't using the special features of org.freedesktop.FileManager1, just change Firefox to use "xdg-open $DIRECTORY" to open a filemanager or to look up the default filemanager in:
~/.local/share/applications/mimeapps.list (has priority)
/usr/share/applications/mimeinfo.cache


If Firefox uses special features from org.freedesktop.FileManager1:
In a perfect world, Firefox should check if Nautilus is set as the default filemanager. E.g. running "xdg-mime query default inode/directory" which checks the files:
~/.local/share/applications/mimeapps.list (has priority)
/usr/share/applications/mimeinfo.cache

Alternatively, Firefox could check if DESKTOP_SESSION is set to "gnome".
I wouldn't suggest to check for DESKTOP_SESSION=KDE, because there are a lot of other desktop environments which also use other filemanagers then Nautilus.

If the results is negative (depended on which strategy was chosen), Firefox should use the default filemanager (either the on set by the system or set by the user). This can be done by running "xdg-open $DIRECTORY" or looking up the default filemanager in:
~/.local/share/applications/mimeapps.list (has priority)
/usr/share/applications/mimeinfo.cache

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/133133

Title:
  "Open containing folder" is only working if nautilus is present

Status in The Mozilla Firefox Browser:
  Confirmed
Status in firefox package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: firefox

  Tools->Downloads-> (Right click)->Open containing folder

  Result: Nothing happens (not even an error).
  Expected: An error, a dialog asking to choose a file manager or just konqueror showing the folder.

  Fix: add the following line to prefs.js
  user_pref("network.protocol-handler.app.file", "konqueror");

  ProblemType: Bug
  Architecture: i386
  Date: Fri Aug 17 12:54:22 2007
  DistroRelease: Ubuntu 7.04
  Package: firefox 2.0.0.5+1-0ubuntu1
  PackageArchitecture: i386
  SourcePackage: firefox
  Uname: Linux localhost 2.6.20-12-generic #2 SMP Wed Mar 21 20:55:46 UTC 2007 i686 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/133133/+subscriptions