Fri 20 Mar 2009 09:22:17 AM UTC, original submission:
The mime type for texmacs files has not been recognized in Ubuntu for a long time (possibly, it is a more general Gnome problem).
When a texmacs document is created, it is shown as a text document, when clicking on the corresponding icon the document is opened with gedit.
The steps to fix the problem are:
1) adding a file
/usr/share/mime/packages/texmacs.xml
containing the following lines:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
<mime-type type="text/texmacs">
<comment>TeXmacs Document</comment>
<glob pattern="*.tm"/>
</mime-type>
</mime-info>
(the corresponding openoffice.org-common.xml file may serve as a model).
2) copying a (e.g. scalable) icon named 'text-texmacs.svg' in
/usr/share/icons/gnome/scalable/mimetypes/
to be used for TeXmacs documents
3) performing after installation:
update-mime-database /usr/share/mime
update-desktop-database
gtk-update-icon-cache --force /usr/share/icons/gnome
These steps restore correct integration of TeXmacs in the Gnome desktop.
|