aboutsummaryrefslogtreecommitdiffstats
path: root/misc/setup/preuninstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/setup/preuninstall.sh')
-rwxr-xr-x[-rw-r--r--]misc/setup/preuninstall.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/setup/preuninstall.sh b/misc/setup/preuninstall.sh
index 49e8056..e6a413d 100644..100755
--- a/misc/setup/preuninstall.sh
+++ b/misc/setup/preuninstall.sh
@@ -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