update-desktop-database location

Christian Westgaard chrisw at opera.com
Tue Feb 7 16:45:46 EET 2006


On Mon, 06 Feb 2006 16:25:15 +0100, Stanislav Brabec <sbrabec at suse.cz> wrote:

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

I thought the idea was, not to have one check for every distro/version of distro,
but to have one common way, defined by a standard.



-- 
Christian Westgaard <chrisw at opera.com>
Developer and Project Manager
Opera Software ASA



More information about the xdg mailing list