GNOME Bugzilla – Bug 353232
planner files show as type plain text when selected in nautilus (low magic priority)
Last modified: 2007-04-12 17:14:21 UTC
Please describe the problem: When you open a folder in Nautilus containing a .planner file it shows as type Planner project plan. But when you select that file the type changs to plain text. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information: In /usr/share/mime/packages/planner.xml the priority is set: magic priority="50" This is the default value, specific application types should be higher (http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.13.html) for me changing it to: magic priority="60" stops it changing to plain text.
Created attachment 75297 [details] [review] increase magic priority I have seen the same behaviour. Raising the magic priority fixes this problem. The attached path just set the priority to 60. Arthur Petitpierre.
I tried this, and didn't see any change in behavior after reinstalling planner and doing: sudo update-mime-database /usr/share/mime/ nautilus --quit Is there something I'm missing to make the change take effect?
No, just editing the xml file, updating mime-database and restarting nautilus is enough for me. I've repeated this on Gentoo and Ubunty Edgy.
Fair enough. I'll wrestle with my machine later. Committed. This will be included in v0.14.2 release (should be available in an hour or so).
Could we also change the "application/x-planner" mime-type to be a sub-class-of "application/xml"? This worked for me (with no change to magic priority). This may be a better approach than priority tuning, since the file /actually is/ xml...
Created attachment 86245 [details] [review] add sub-class-of declaration