update-desktop-database location

Stanislav Brabec sbrabec at suse.cz
Mon Feb 6 17:25:15 EET 2006


Matthias Clasen wrote:
> On Mon, 2006-02-06 at 15:46 +0100, Christian Westgaard wrote:
> > http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
> > 
> > Does not specify the location of the update-desktop-database script.
> > 
> > I currently test for XDG support like this:
> > 
> > if update-desktop-database --help >/dev/null 2>&1; then
> > 
> > But when update-desktop-database is not in $PATH, I'm out of luck.
> > 
> > Is there a better test? A specced one?
> > 
> 
> Well, common sense suggests to look in /usr/bin. Does that really needs
> to be explicit in the spec ? Come on.

Specifically SuSE has for historical reasons:

sbrabec~> which update-desktop-database
/opt/gnome/bin/update-desktop-database

It should be in PATH in any case.

But you can use:
update-desktop-database 2>/dev/null || true

Or specifically in current version of SuSE:
SuSEconfig --module desktop-file-utils
It is started after installation of any package.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SuSE CR, s. r. o.                             e-mail: sbrabec at suse.cz
Drahobejlova 27                               tel: +420 296 542 382
190 00 Praha 9                                fax: +420 296 542 374
Czech Republic                                http://www.suse.cz/




More information about the xdg mailing list