After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353232 - planner files show as type plain text when selected in nautilus (low magic priority)
planner files show as type plain text when selected in nautilus (low magic pr...
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
0.14
Other All
: Normal minor
: ---
Assigned To: planner-maint
planner-maint
Depends on:
Blocks:
 
 
Reported: 2006-08-28 12:54 UTC by Chris Mayo
Modified: 2007-04-12 17:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
increase magic priority (593 bytes, patch)
2006-10-24 12:53 UTC, Arthur Petitpierre
none Details | Review
add sub-class-of declaration (626 bytes, patch)
2007-04-12 17:14 UTC, Glen Johnson
none Details | Review

Description Chris Mayo 2006-08-28 12:54:00 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.
Comment 1 Arthur Petitpierre 2006-10-24 12:53:15 UTC
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.
Comment 2 Kurt Maute 2006-11-25 16:26:03 UTC
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?
Comment 3 Chris Mayo 2006-11-26 12:42:36 UTC
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.
Comment 4 Kurt Maute 2006-11-26 14:05:38 UTC
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).
Comment 5 Glen Johnson 2007-04-12 17:12:49 UTC
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...
Comment 6 Glen Johnson 2007-04-12 17:14:21 UTC
Created attachment 86245 [details] [review]
add sub-class-of declaration