aboutsummaryrefslogtreecommitdiffstats
path: root/misc/setup/preuninstall.sh
blob: e6a413d2cc45b3c89a82e4950807580f610d52b8 (plain)
1
2
3
4
5
6
7
8
9
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