----- "Carsten Haitzler (The Rasterman)" <[EMAIL PROTECTED]> ha scritto:

> On Sat, 6 Dec 2008 20:47:08 +0100 (CET) Dave Andreoli
> <[EMAIL PROTECTED]>
> babbled:
> 
> 
> > 
> > I think the best way is the simple API presented in the patch:
> > 
> > EAPI const char* efreet_mime_default_application_get(const char
> *mime);
> > EAPI void efreet_mime_default_application_set(const char *mime,
> const char
> > *desktop);
> > 
> > This api is so simple that I don't think is going to change in
> future.
> > 
> > So the only problem ramain seems that this is not YET official FDO
> standard,
> > and some people don't like to put it in efreet for this reason.
> > IMO we can safetly place this in efreet with a note that say that is
> not
> > official atm.
> 
> a few things with the patch though.
> 
> 1.: oopsie in patch
> +            snprintf(buf, sizeof(buf),
> "%sapplications/defaults.list", dir);
> should be "%s/app...

yep, thanks for spotting

> 2.: i see no api to list all mime + app to be used

You mean the list of all know associations? why you need all the list?

> 3.: i see no way to just specify a command (as opposed to a .desktop
> file). this
> changes part of efm so we need to write new .desktops for custom
> commands or
> need to drop that feature. i'm actually in favor of .desktop only -
> but making
> it easier in the ui to create new "custom command" .desktop files
> (that don't
> show up in menus, but can be in a special category of their own and
> browsed,
> deleted, edited and created like any other .desktop).

Indeed, only .desktop and a good way to manage customs created.
I will work on this

> 4. i see no way to delete an entry in the mime apps list from the api

we can pass NULL to efreet_mime_default_application_set()...don't remember
if this is implemented in the patch.

> 5. i see no way to maintain a preference list - ie list the most
> recently used
> or preferred app .desktops. example:
> 
> i install mplayer and prefer it to open .avi files - i tell efm once
> and it
> saves this. so it keeps using it. now i uninstall mplayer - i'd like
> to to go
> back to my previous app (let's say xine) for playing. so as such i
> think what
> you want here is not a single entry but a list per file type - if we
> are to
> make this generic for everyone to use, it'd better cover a very very
> very wide
> range of uses. also entries should be marked as sticky or floating.
> sticky ==
> the list order may change based on usage patterns (eg if i start
> running
> mplayer much more than xine - maybe it auto-re-orders the list), and
> others may
> be "dont care how much i use apps. ALWAYS open .avi with m player!".
> for
> example. maybe for some you want to also limit list length (length of
> 1 is the
> current simple 1 .desktop per mime type case and as there are no other
> entries
> - it cant be re-ordered and fall back to previously used mime type
> handlers).

IMO the list of preference could be used, but inside the API, not exposed.
So that when you call application_get() the implementation choose the best
one and return only the right .desktop
If we return more than one options than apps can do different things, and
this is not consistent.


> 
> so as such - this api needs some work imho. the "standard not yet a
> standard"
> imho is too simplistic and already will have usability problems (eg in
> the
> uninstall case). admittedly in that case you could just pop up the
> "well app
> doesnt exit - ask what app you want to use now" again, but it's not as
> nice as
> maintaining a list of preferences.


> 
> > > 
> > > Best regards,
> > > Teodor Petrov
> > > 
> > > 
> > > p.s. Is there an EFL way to get the list of all mime type and a
> list
> > > of all desktop files?
> > > 
> > > 
> > > 
> > > > -- 
> > > > ------------- Codito, ergo sum - "I code, therefore I am"
> > > --------------
> > > > The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
> > > > 
> > > > 
> > > >
> > >
> -------------------------------------------------------------------------
> > > > 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
> > > 
> > >
> ------------------------------------------------------------------------------
> > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las
> Vegas,
> > > Nevada.
> > > The future of the web can't happen without you.  Join us at MIX09
> to
> > > help
> > > pave the way to the Next Web now. Learn more and register at
> > >
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > 
> >
> ------------------------------------------------------------------------------
> > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada.
> > The future of the web can't happen without you.  Join us at MIX09 to
> help
> > pave the way to the Next Web now. Learn more and register at
> >
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > 
> 
> 
> -- 
> ------------- Codito, ergo sum - "I code, therefore I am"
> --------------
> The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to