loki-setup: use xdg-desktop-menu instead of loki-setup legacy menu entries

This commit is contained in:
Ludwig Nussel 2008-06-07 13:31:18 +00:00
parent bab9a00838
commit 13de2746ea
5 changed files with 47 additions and 0 deletions

8
misc/setup/preuninstall.sh Normal file → Executable file
View file

@ -1,2 +1,10 @@
#!/bin/sh
rmdir --ignore-fail-on-non-empty demoq3 missionpack >& /dev/null
if test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
$xdg_desktop_menu uninstall --novendor ioquake3.desktop
rm ioquake3.desktop
fi