FS#16206 - [pcmanfm] Mime type configuration defaults
Attached to Project:
Community Packages
Opened by D C (TheFlyingPengwyn) - Tuesday, 15 September 2009, 13:07 GMT
Last edited by Eric Belanger (Snowman) - Monday, 03 October 2011, 19:33 GMT
Opened by D C (TheFlyingPengwyn) - Tuesday, 15 September 2009, 13:07 GMT
Last edited by Eric Belanger (Snowman) - Monday, 03 October 2011, 19:33 GMT
|
Details
Description:
When choosing folders under the 'Places' menu in GNOME, a 'Find Files' window is opened instead of a file browser. This window does not allow any file browsing. Reason: The pcmanfm package installs .desktop files into /usr/share/applications that are associated with the x-directory/normal mimetype. When update-desktop-database is run, it compiles the list of applications into mimeinfo.cache with 'pcmanfm-find.desktop' at the front of the list, along with 'pcmanfm-folder-handler.desktop' and 'nautilus-folder-handler.desktop'. xdg-open (and gnome-open) then choose the default as 'pcmanfm-find.desktop'. Per-user fix: Run one of the following commands to set the default application to either pcmanfm or nautilus: xdg-mime default /usr/share/applications/pcmanfm-folder-handler.desktop x-directory/normal xdg-mime default /usr/share/applications/nautilus-folder-handler.desktop x-directory/normal Suggested package changes (if deemed neccessary): 1) Remove the mimetype x-directory/normal from pcmanfm-find.desktop (as it does not appear relevant). or 2a) Add the "xdg-mime default... pcmanfm-folder-handler.desktop..." command to the end of the pcmanfm.install file. (I am not sure if this works correctly for a system-wide configuration) as well as 2b) Add "xdg-mime default... nautilus-folder-handler.desktop..." command to the end of the nautilus package .install file. Relevant package versions: pcmanfm 0.5.1-2 shared-mime-info 0.60-1 desktop-file-utils 0.15-1 xdg-utils 1.0.2-2 |
This task depends upon
Closed by Eric Belanger (Snowman)
Monday, 03 October 2011, 19:33 GMT
Reason for closing: Won't fix
Additional comments about closing: pcmanfm was removed from repos
Monday, 03 October 2011, 19:33 GMT
Reason for closing: Won't fix
Additional comments about closing: pcmanfm was removed from repos
Totally ridiculous, annoying and just bad ;)
I opt for 'solution' 2b, and that for every filemanager package affected. Maybe even a user hint to run above command if change wanted, even better 'force' upstream to check for mime-type priorities, per user config in ~/.local/share/mime and maybe add option for it(default filemanager) in 'preferred apps' setting dialog in gnome's case. kde has such a setting...
See https://bugs.archlinux.org/task/15719 as well.
However, the problem in general is not fixed. For instance, when downloading something with firefox, and then clicking 'open containing folder' once the download has completed, thunar gets fired up, although I'm running gnome.
As stated above, one can remedy the problem, but the value in the config files seems to get messed up during updates or something. I adjusted the settings manually a few times, and finally have just given up on it. :(
I think the installation of each desktop environment should provide some reasonable defaults, provided there are no settings yet. But this too should be filed against each particular DE.