Hi all
This is a relly small patch that add 2 functions to Efreet_Mime.

EAPI const char*
efreet_mime_default_application_get(const char *mime)

EAPI void
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
Dave






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to