well as wysota mentioned...i've already put forth this doubt...and here's the answerOriginally Posted by fullmetalcoder
on KDE you have need to look in $XDG_DATA_DIR environ variable...this is where all the apps are installed...
eg: /usr/share/applications
look in mimeinfo.cache in this folder...
you will find a list of file formats and the corresponding apps that can be used for opening them i.e. ".desktop" files that will be found in the same directory.
Now if you want to associate a particular extension with an app you need to add the relevant details to the mimeinfo.cache and provide the apt .desktop file for handling it.
on GNOME you have a file by the name gnome-application-registry (something similar)
where you store the similar type of data. (use the locate tool to find a file of this name)
if you want more (rather lots more info...i'can mail them to you later...)
There is no need to look in the sources...just go on www.freedesktop.org and look for shared-mime-info-spec.....you'll get all the info you need (only if you read that with some concentration and an open mind)
Nupul
Bookmarks