Retext doesn't open text/x-markdown type files

Bug #1298808 reported by Rohan "HEXcube" Villoth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ReText
Fix Released
Undecided
Unassigned

Bug Description

Retext doesn't associate with text/x-markdown which is the most common mimetype for markdown. Instead, it associates with text/x-retext-markdown and text/x-retext-rst. This can be fixed by adding text/x-markdown in the MimeType field of retext.desktop. x-text/markdown is already defined in /usr/share/mime/text/x-markdown.xml. gedit opens it and recognizes it as markdown. I've attached a fixed redit.desktop here.

Revision history for this message
Rohan "HEXcube" Villoth (hexcube) wrote :
Revision history for this message
Dmitry Shachnev (mitya57) wrote : Re: [Bug 1298808] [NEW] Retext doesn't open text/x-markdown type files

Is there any package shipping text/x-markdown.xml so that we could
recommend it?

Revision history for this message
Rohan "HEXcube" Villoth (hexcube) wrote :

The `shared-mime-info` package's mime database -
/usr/share/mime/packages/freedesktop.org.xml defines text/x-markdown as
Markdown mimetype. This package is provided by freedesktop.org, and as
a result mimetypes defined by it are the defacto standard for linux
desktop. As a result, when I open the properties menu for files with
.md extension, it shows text/x-markdown as the type. This stackoverflow
page also lists text/x-markdown as the most common mimetype for
markdown: http://stackoverflow.com/questions/10701983/what-is-the-mime-type-for-markdown.gedit
can open and recognise Markdown. It has syntax highlighting for
markdown. gedit,Emacs,Libreoffice Writer all associates with markdown,
even though none of them has defined text/x-markdown in their *.desktop
files. It seems all apps which defines text/plain mimetype in their
desktop files can open text/x-markdown too.
There is no need to create text/x-markdown.xml as it is autogenerated
from freedesktop.org.xml. Just simply add text/x-markdown to
retext.desktop. Fixing this issue will solve the problem mentioned
here :
 http://askubuntu.com/questions/256303/double-clicking-on-md-or-mkd-or-markdown-files-doesnt-open-them-in-retext-bu

On Fri, Mar 28, 2014 at 2:24 PM, Dmitry Shachnev <email address hidden>
wrote:
> Is there any package shipping text/x-markdown.xml so that we could
> recommend it?
>
> --
> You received this bug notification because you are subscribed to the
> bug
> report.
> https://bugs.launchpad.net/bugs/1298808
>
> Title:
> Retext doesn't open text/x-markdown type files
>
> Status in ReText:
> New
>
> Bug description:
> Retext doesn't associate with text/x-markdown which is the most
> common
> mimetype for markdown. Instead, it associates with text/x-retext-
> markdown and text/x-retext-rst. This can be fixed by adding
> text/x-markdown in the MimeType field of retext.desktop.
> x-text/markdown is already defined in
> /usr/share/mime/text/x-markdown.xml. gedit opens it and recognizes
> it
> as markdown. I've attached a fixed redit.desktop here.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/retext/+bug/1298808/+subscriptions
>

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Fixed in 4.1.2's desktop file.

Changed in retext:
status: New → Fix Released
Revision history for this message
Rohan "HEXcube" Villoth (hexcube) wrote :

Thanks Dmitry!
Bug is solved! ReText now shows in the "Open with" menu and on "Recommended Apps for opening" for markdown files. It's not the default app for opening markdown, but that's how gnome and freedesktop standards work! The user can now easily make ReText the default app for markdown.

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.