Request for clarification on menu/file spec

Ludwig Nussel ludwig.nussel at suse.de
Tue Feb 7 21:28:28 EET 2006


Jeremy White wrote:
> > rather pragmatic approach so if it was up to me to implement xdg
> > support into loki-setup I'd just try to put a desktop file into
> > /usr/share/applications if it already exists. If that fails, try
> > $XDG_DATA_DIRS and finally create ~/.local/share/applications. The
> > uid of the user you are running as doesn't matter.
> 
> Yep.  The whole problem is when you say 'try $XDG_DATA_DIRS', what
> exactly does that mean?  I'm trying to write a single .desktop file;
> do I write it to every directory listed in $XDG_DATA_DIRS?  Do I write
> it just to the first directory, or do I (my personal favorite) write
> it to the first writable directory in the list?

To the first writeable, just like loki-setup already does it e.g.
for installing symlinks in $PATH.

> Note that I'm actually not waiting on this; my implementation is done
> and works.  My concern is that I want to improve the specification so
> that others can find it simpler to do this in the future.

Nice :-)

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/






More information about the xdg mailing list