LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GNOME filetypes (https://www.linuxquestions.org/questions/linux-software-2/gnome-filetypes-193825/)

sanmadjack 06-15-2004 01:08 PM

GNOME filetypes
 
I'm trying to get some GBA ROMs associated with my emulator, but GNOME 2.6 keeps assigning them the MIME-types application-octetstream or text/plain

I'd like to associate based on extension, and I remember hearing something about GNOME 2.6 detecting file types based on extension if possible, but I haven't been able to find out how to do this

titopoquito 07-11-2004 02:58 PM

I had the same problem with Musepack audio files.

Editing the appropriate four gnome-files according to the gnome administrator's guide didn't change too much (too make these modifications see the chapter about MIME types in the administrator's guide). The trick for me was to add also an entry for the new mime-type to the file /usr/share/mime/packages/freedesktop.org.xml as root and then run
Code:

/usr/bin/update-mime-database /usr/share/mime
After the next start nautilus treated and started my files like a charm :D

This seems to be a problem due to different locations to store the mime data in. Gnome has one place, the package shared-mime-info from freedesktop.org has another.

Cheers,
titopoquito

P.S.: The content sniffing seems to be turned off in gnome 2.6, so i had not to deal with this one.


All times are GMT -5. The time now is 08:21 PM.