From: Dave Andreoli <dave@gu...> - 2008-10-27 19:41:11
This is a relly small patch that add 2 functions to Efreet_Mime.
EAPI const char*
efreet_mime_default_application_get(const char *mime)
efreet_mime_default_application_set(const char *mime, const char *desktop)
The _get function take a mime-type (as 'text/html') and return the
name of the desktop file (as 'Firefox.desktop') that should be
used to open the given mime-type. The information is readed from
the $XDG_DATA_DIRS/applications/defaults.list file, first the
user preference file is checked than the system wide.
The second one set the preference in the user defaults.list file.
With this functions all the applications that use efreet can know witch
is the default program to use to open a given mime-type.
Hope you like it
Get latest updates about Open Source Projects, Conferences and News.