I installed ReText 3.1.3* and all suggested dependencies on Lubuntu 12.10 using apt-get
.
If I run touch ~/Desktop/abcd.md
, and subsequently double-click on abcd.md
in PCManFM or on its icon on the desktop, the file opens with Leafpad.
The same thing happens if I use .mkd
or .markdown
as the extension. These extensions are among a few listed in /usr/share/mime/packages/x-retext-markdown.xml
.
In these three cases, when I right-click on them and look at their properties, they're all "plain text documents".
If I try touch ~/Desktop/abcd.rst
or touch ~/Desktop/abcd.rest
, these files do open in ReText when double-clicked. These extensions are present in /usr/share/mime/packages/x-retext-rst.xml
. These files are of type "reStructuredText document".
The image below illustrates what I see when I right-click on files with .md, .mkd or .markdown extensions (top left), or on files with .rest or .rst extensions (top right). The lower image is the view PCManFM takes of files with .mkd and .rst files.
Even when right-clicking and going into Open With ...
followed by the second Open With ...
shows basically the same thing. The file with a .mkd extension is seen as a "plain text" file whereas the one with a .rst extension is seen as a reStructured Text file:
While it's quite possible that I've unintentionally tweaked something somewhere, can someone set things right for me?
Just to be clear, these files are empty so their content isn't an issue:
[11:10 AM] ~/Desktop $ file abcd*
abcd.markdown: empty
abcd.md: empty
abcd.mkd: empty
abcd.rest: empty
abcd.rst: empty
The contents of /usr/share/applications/retext.desktop are:
[Desktop Entry]
Version=1.0
Name=ReText
Comment=Simple text editor for Markdown and reStructuredText
Categories=Office;TextEditor;
Exec=/usr/bin/retext %F
Type=Application
Icon=retext
MimeType=text/x-retext-markdown;text/x-retext-rst;
***** ReText was updated to 3.1.4 but the issue remains.