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

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

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

Commited in the svn.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
Wed 04 Apr 2012 01:06:21 PM UTC, comment #2:

See also https://savannah.gnu.org/bugs/index.php?35784

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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 #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
  • -unavailable- added by fpoulain
  • -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 the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Apr 2012 12:00:29 PM UTCfpoulainStatusNone=>Fixed
      Assigned toNone=>fpoulain
      Open/ClosedOpen=>Closed
    Wed 04 Apr 2012 01:04:57 PM UTCfpoulainAttached File-=>Added texmacs.mime, #25565
      Carbon-Copy-=>Added denis raux
    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

    Back to the top


    Powered by Savane 3.1-cleanup1