Where does fedora save the file defaults (like mpg, php etc)

Dr. Michael J. Chudobiak mjc at avtechpulse.com
Mon Mar 26 17:36:52 UTC 2007


Mark wrote:
> Hey,
> 
> when you right click a file and than press "Open With" you will get a 
> list of available programs for that file and the default program. but 
> now i`m wondering where that stuff is stored.. because i cant find it in 
> gconf.
> 
> so.. is it stored in a configuration file? or in a database??

Each gnome program "registers" itself in a *.desktop file in 
/usr/share/applications. There is a "MimeType" line in these files 
indicating what types of files it can handle. (The mimetype definitions 
are in /usr/share/mime*).

You may have *.desktop files under your home directory too.

If you change these files, you need to run update-desktop-database.

- Mike




More information about the fedora-list mailing list