[Thunar-dev] Changing the mimetype of a file.

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Thu Jul 27 15:26:46 CEST 2006


Biju Chacko wrote:
>>>>>I have a kind of file: *.tjp that is plain text with a C-like syntax.
>>>>>Thunar thinks it's a C header and associates it accordingly. I'd like  
>>>>>to
>>>>>change it's association without modifying the C header association.  
>>>>>How
>>>>>do
>>>>>I do that?
>>>>
>>>>Add a glob rule for *.tjp to the shared-mime-database (see the
>>>>freedesktop.org website for details).
>>>
>>>Well, I knew of *that* method -- I was hoping to be able to do it within
>>>thunar itself since that is what a non-technical user would expect. Oh
>>>well, time to read some docs ...
>>>
>>>:-/
>>
>>No, that's not really the job of the file manager. But feel free to
>>contribute a MIME database editor. ;-)
> 
> I know that this is getting OT, sorry:
> 
> I tried adding a glob rule for *.tjp and it's not working either nautilus  
> or thunar. Is there more to it than adding an xml file in the  
> $XDG_DATA_DIR/mime/packages dir and then running update-mime-database?

Yes. Check the generated glob file to see if the changes were applied.

> -- b

Benedikt



More information about the Thunar-dev mailing list