[Lazarus] OpenDocument and Linux Mint

Lukasz Sokol el.es.cr at gmail.com
Fri Apr 25 17:35:38 CEST 2014


On 25/04/14 16:08, silvioprog wrote:
> 2014-04-25 3:23 GMT-03:00 zeljko <zeljko at holobit.net
> <mailto:zeljko at holobit.net>>:
> 
[...]
> 
> But not so good. Maybe you have kde and gnome and you are currently
> using gnome desktop. Calling kfclient can be pita in this case since
> kde isn't loaded so kfmclient will load bulk of libs and it can be
> slow. My proposal for fallback will be check for current desktop env
> and then call appropriate application (only if xdg-open fails).
> 
> 
> Yes, and I implemented a 'quick fix' local in my program, to call the
> "gnome-open" directly, solving my problem, until a better solution
> comes along.
> 
> -- Silvio Cl├ęcio My public projects - github.com/silvioprog
> <http://github.com/silvioprog>
> 

what if the function checked some result code from the external program,
and tried another possibility [maybe from a configurable list?] if not
getting what it expects?

-L.





More information about the Lazarus mailing list