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 587322 - Text file changing content-type
Text file changing content-type
Status: RESOLVED NOTGNOME
Product: gedit
Classification: Applications
Component: general
2.26.x
Other All
: Normal normal
: ---
Assigned To: jessevdk@gmail.com
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-29 16:10 UTC by lordmetroid
Modified: 2009-06-29 16:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description lordmetroid 2009-06-29 16:10:15 UTC
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 1 jessevdk@gmail.com 2009-06-29 16:30:25 UTC
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)