Text files changes default launching software

Bug #393241 reported by Nicklas W Bjurman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit
Unknown
Medium
shared-mime
Fix Released
Medium
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

As I enter a space into the text file. The text file changes content-type and hence changes default launching software as well. In this case to Grapviz dot.

Revision history for this message
Nicklas W Bjurman (lordmetroid) wrote :
Revision history for this message
Nicklas W Bjurman (lordmetroid) wrote :
Revision history for this message
In , Nicklas W Bjurman (lordmetroid) wrote :

Please describe the problem:
As I enter a space into the text file. The text file changes content-type for
an unknown unexplainable reason and hence changes default launching software as
well. In this case to Grapviz dot.

Steps to reproduce:
1. Enter into gedit, "Automatically add <p> </p> aruond paragraphs of text,
unless the paragraph"
2. Save
3. Add a space and save(it is now detected as a Graphviz dot file)

Actual results:
First when the file is saved it is detected as text
After adding a space to the end of the line it is however detected as Graphviz
dot

Expected results:
Keep being detected as a text file.

Does this happen every time?
Yes

Other information:
http://launchpadlibrarian.net/28490754/Screenshot-1.png
http://launchpadlibrarian.net/28490767/Screenshot-2.png

comment(http://bugzilla.gnome.org/show_bug.cgi?id=587322#c1) from previously malfiled bug:
This is not a problem in gedit but in the shared-mime-info. I found the
following magic rule for graphiz dot files:

<match value="graph " type="string" offset="0:256"/>

Which nicely matches "... paragraph ". Please file a bug against
shared-mime-info (http://freedesktop.org/wiki/Software/shared-mime-info)

description: updated
Changed in gedit:
status: Unknown → Invalid
Revision history for this message
Nicklas W Bjurman (lordmetroid) wrote :

Comment( http://bugzilla.gnome.org/show_bug.cgi?id=587322#c1 ) from gedit upstream:
This is not a problem in gedit but in the shared-mime-info. I found the
following magic rule for graphiz dot files:

<match value="graph " type="string" offset="0:256"/>

Which nicely matches "... paragraph ". Please file a bug against
shared-mime-info (http://freedesktop.org/wiki/Software/shared-mime-info)

description: updated
Changed in shared-mime:
status: Unknown → Confirmed
Revision history for this message
In , David Faure (faure) wrote :

Fixed (changed the 0:256 into 0; people using comments in their .dot file can just call it ".dot" or ".gv" and won't need magic).

The fix will be in the next release after 0.60 (I guess it will be called 0.70)

Revision history for this message
In , David Faure (faure) wrote :

Marking as fixed.

Changed in shared-mime:
status: Confirmed → Fix Released
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.
Is this bug reproducible with the latest Lucid packages ?
Tanks in advance.

Changed in ubuntu:
status: New → Incomplete
Changed in ubuntu:
status: Incomplete → Invalid
Changed in shared-mime:
importance: Unknown → Medium
Changed in gedit:
importance: Unknown → Medium
status: Invalid → Unknown
Changed in shared-mime:
importance: Medium → Unknown
Changed in shared-mime:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.