On Mon, 06 Feb 2006 16:25:15 +0100, Stanislav Brabec <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
Developer and Project Manager
Opera Software ASA
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg