On 2 May 2011 11:24, Vincent Untz
a) Package installs a .desktop file in /usr/share/applications
Macros: %desktop_database_post/%desktop_database_postun
What it does: calls update-desktop-database to update a cache mapping MIME types to apps handling them. This is needed to make the desktops aware that an app can handle a MIME type.
The macros (non only this one, also the MIME and icon ones) are creating scripts like this: if test -x /usr/bin/update-desktop-database; then /usr/bin/update-desktop-database --quiet "/usr/share/applications" || true fi It is not going to fail if /usr/bin/update-desktop-database doesn't exist? If the execution fails the "|| true" will ensure that the exit result is 0. But if it doesn't exist the exit result will be the one from "test -x"... Fedora doesn't do the first test and just lets it fail (http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#desktop-database). -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org