Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Gnome getting confused with mime types

 
   Soft32 Home -> Linux -> GTK-GNOME RSS
Next:  please unblock libxi/2:1.1.4-1  
Author Message
Olivier Ramare

External


Since: Nov 17, 2008
Posts: 2



(Msg. 1) Posted: Mon Nov 17, 2008 4:25 pm
Post subject: Gnome getting confused with mime types
Archived from groups: linux>debian>maint>gtk>gnome (more info?)

Dear all,

Sorry if my question does not belong to this
group --- Anyway, here is the file "HRIW2.tex":
----------------------------------------------
%\chapter{Brun sieve after Rankin's trick}
\label{Brun sieve after Rankin's trick}

We follow here \cite{Murty-Saradha*87}. \cite{Brun*19b}.

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "HRIWLectures"
%%% End:
----------------------------------------------
This is a chapter of a book, chapter which I want to
open with emacs. However gnome always tells me
[translation approximate]:
-------------------------------------------------
Impossible to open HRIW2.tex
The name of this file "HRIW2.tex" indicates that it is
a "document TeX" file. The content of this file indicates
that it is a "script/MATLAB" file. [...]
-------------------------------------------------
Both Matlab script and tex files are to be opened
with emacs anyway (I do not use any matlab script!).
I tried to declare these files "certified" with
the proper icon attached to them, to no avail.

Since I'm writing a book, I will have quite a lot
of editing to do ...

What I would want:
-- a definite way to tell my system that I know
the file I'm editing, once and for all.
-- but short of that, a way to trick the system
into believing it is a tex file would be good.
Or a way to trick it into not believing it is
a matlab script. I tried to scan through
/usr/share/gnome/mime[-info]? but found nothing
relevant. And the file /usr/share/mime/magic
is compiled. Can't even find where the mime
type script/matlab is declared/defined

Any idea?
Many thanks in advance! [that's gnome2 -- and lenny]
Best,
Amities,
Olivier


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Olivier Ramare

External


Since: Nov 17, 2008
Posts: 2



(Msg. 2) Posted: Wed Nov 19, 2008 1:25 am
Post subject: Re: Gnome getting confused with mime types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josselin Mouette a écrit :
> Le mardi 18 novembre 2008 à 19:41 +0100, Olivier Ramare a écrit :
>
>> Josselin Mouette a écrit :
>>
>> [...]
>>
>>> We should probably set something like:
>>>
>>> <magic priority="50">
>>> <match value="\documentclass" type="string" offset="0:100"/>
>>> </magic>
>>> <magic priority="50">
>>> <match value="\chapter" type="string" offset="0:100"/>
>>> </magic>
>>> <magic priority="50">
>>> <match value="\section" type="string" offset="0:100"/>
>>> </magic>
>>>
>>> Does it work for you?
>>>
>> Oups, and where should I put that ???
>> (Can't find any file containing the string "magic priority")
>>
> /usr/share/mime/packages/freedesktop.org.xml
>
> after which, re-run "update-mime-database /usr/share/mime" to enable the
> changes.
>
> Cheers,
>
Wonder of wonders, it works Smile
[By the way, but that's off topic, beagle should have found this file]
Best !
Amitiés,
Olivier


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
GTK application ----run error - hi i had created one same application in glad interface designer with c option.the n i compiled the same after that i....

[gentoo-user] mime-types, KDE, gnome, and thunderbird - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ok.. after looking around for hours, I think I have found no less than 8...

[gentoo-dev] new mime types - I wrote an application that I would like to handle all .myextensions when accessed from a browser (similar to the..

[gentoo-user] Can't open any files/mime-types? - Hi list, when trying to open any file with k3b or e.g. openoffice, a box tells me "could not find mime type ..

Default MIME types in Konqueror for SuSE 10.2 - I installed the shrinkwrap version of SuSE 10.2, and Konqueor is configured to use KGhostView, Evince, Krita and KPDF..

application/octet-stream in mime.types a comment # appears - Hi people, I want to send "raw" data to a printer in RedHat Linux AS 4. We have cups-1.1.22-0.rc1.9.11 I fo...
       Soft32 Home -> Linux -> GTK-GNOME All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]