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

 
 

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

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

Submitter:  Andrea Gamba <agamba>
Submitted:  Fri 20 Mar 2009 09:22:17 AM UTC
   
 
Category:  Packaging Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  fpoulain
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.0.7
Fixed Release:  None Fixed Release: 
Keywords: 

Thu 05 Apr 2012 12:00:29 PM UTC, comment #4: 

Commited in the svn.

Francois Poulain <fpoulain>
Group Member
Wed 04 Apr 2012 01:09:32 PM UTC, comment #3: 


> Here is a quite complete mime for TeXmacs.


Ooops ... the file extension should be .xml and not .mime ; that's a mistake. Anyway the content is the same.

Francois Poulain <fpoulain>
Group Member
Wed 04 Apr 2012 01:06:21 PM UTC, comment #2: 
Francois Poulain <fpoulain>
Group Member
Wed 04 Apr 2012 01:04:57 PM UTC, comment #1: 

Here is a quite complete mime for TeXmacs.

It has to be copied in /usr/share/mime/packages and performing
update-mime-database /usr/share/mime
to be activated.

But I don't know how to do this with Autotool.

(file #25565)

Francois Poulain <fpoulain>
Group Member
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #25565:  texmacs.mime added by fpoulain (5KiB - application/octet-stream)
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 (61KiB - image/svg+xml - (another version of text-texmacs.svg))
file #17740:  text-texmacs.svg added by agamba (36KiB - image/svg+xml - Scalable icons for texmacs and texmacs documents)
file #17739:  TeXmacs.svg added by agamba (121KiB - 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
  • -email is unavailable- added by fpoulain
  • -email is unavailable- added by agamba (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-05 fpoulain StatusNone Fixed
        Assigned toNone fpoulain
        Open/ClosedOpen Closed
    2012-04-04 fpoulain Attached File- Added texmacs.mime, #25565
        Carbon-Copy- Added denis raux <denisraux>
    2009-04-17 agamba Attached File- Added texmacs.xml, #17944
    2009-04-17 agamba Attached File- Added texmacs.xml, #17943
    2009-04-17 agamba Attached File- Added text-texmacs.svg, #17942
    2009-03-20 agamba Attached File- Added TeXmacs.svg, #17739
        Attached File- Added text-texmacs.svg, #17740

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code