bugGNU TeXmacs - Bugs: bug #25938, broken mime type recognition in...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #25938: broken mime type recognition in Gnome/Ubuntu

Submitted by:  Andrea Gamba <agamba>
Submitted on:  Fri 20 Mar 2009 09:22:17 AM UTC  
 
Category: PackagingPriority: 5 - Normal
Item Group: ErrorStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.0.7Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

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.

Andrea Gamba <agamba>

 

Attached Files
file #17944:  texmacs.xml added by agamba (232B - text/xml - corrected xml file, there was a wrong ";" in the previous version)
file #17943:  texmacs.xml added by agamba (233B - text/xml - xml file)
file #17942:  text-texmacs.svg added by agamba (61kB - image/svg+xml - (another version of text-texmacs.svg))
file #17740:  text-texmacs.svg added by agamba (36kB - image/svg+xml - Scalable icons for texmacs and texmacs documents)
file #17739:  TeXmacs.svg added by agamba (121kB - image/svg+xml - Scalable icons for texmacs and texmacs documents)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by agamba (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter 421 here (basic anti-spam test):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 17 Apr 2009 08:57:05 PM UTCagambaAttached File-=>Added texmacs.xml, #17944
    Fri 17 Apr 2009 08:54:01 PM UTCagambaAttached File-=>Added texmacs.xml, #17943
    Fri 17 Apr 2009 08:47:42 PM UTCagambaAttached File-=>Added text-texmacs.svg, #17942
    Fri 20 Mar 2009 09:22:18 AM UTCagambaAttached File-=>Added TeXmacs.svg, #17739
      Attached File-=>Added text-texmacs.svg, #17740
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup