----- "Nick Hughart" <[EMAIL PROTECTED]> ha scritto:

> This is not yet an fdo specification so I'm not going to put it in
> just 
> yet.  It seems to have promise and is a fairly simple format, but for
> 
> now we have our own methods of choosing default applications and it is
> 
> similar to how they choose as well (given the user is not making this
> 
> file on their own). 
> 
> When opening a file in EFM, if that mimetype has not been opened 
> previously you will be given a list of apps that support that mimetype
> 
> and a list of all apps as well just in case.  Once you have chosen an
> 
> app, EFM remembers this and will use that app until you pick a
> different 
> app by using Open With.  So for now we have our own methods of doing 
> this, but if it does become a specification it may be good to adopt
> this 
> as it would help with those doing packaging and distribution.

Where EFM store the user preference, is it possible to others to access
this data? 
I think we need a centralised way to keep this information, or the user
need to choose a preferred application for every apps/module that need
to open a filemanager or a browser.
I know this is not a standard yet. But this doesn't mean we can't have
our method to storing this user preference.

I have also done a module that add a configuration dialog to set your
preferred apps. Its very simple, but it make no sense if there are
not a shared place to store the informations.
Don't you think this is a must have module??

So IMHO we need to define witch is the E way to store the mime/application
associations, and have the code in some lib (maybe not efreet for now).
In this way we can have all the apps/module work the same way and we 
can also change the lib to fit a final freedesktop standard without 
touching modules.
If we don't do this now all the apps/modules will do the associations 
in a different way and when the fdo standard will become a reality we 
need to redo everything.

Regards 
Dave

> 
> Dave Andreoli wrote:
> > ...and the attachment ;)
> > the patch is to be applied in the main efreet directory.
> >
> > Dave
> >
> > ----- "Dave Andreoli" <[EMAIL PROTECTED]> ha scritto:
> >
> >   
> >> 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
> >>     
> >>
> ------------------------------------------------------------------------
> >>
> >>
> -------------------------------------------------------------------------
> >> 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

-------------------------------------------------------------------------
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