Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Angel Velasquez (angvp)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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
Comment by Tom (hungerfish) - Tuesday, 01 December 2009, 13:48 GMT
This can also happen with thunar, when installed alongside nautilus.(Places opening in thunar, not nautilus)
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...
Comment by Glenn Matthys (RedShift) - Monday, 15 November 2010, 12:37 GMT
What's the status of this issue?

See https://bugs.archlinux.org/task/15719 as well.
Comment by Tom (hungerfish) - Tuesday, 16 November 2010, 17:48 GMT
Well refering to the issue with gnome places on the other task, I'm no longer having problems. Nautilus is opened although both thunar and pcmanfm are installed.
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. :(
Comment by roko (roko) - Saturday, 18 June 2011, 17:00 GMT
I suggest to close this one and affected users should file a separate bug against each program that messed up settings during installation.

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.

Loading...