loki-setup: use xdg-desktop-menu instead of loki-setup legacy menu entries
This commit is contained in:
parent
bab9a00838
commit
13de2746ea
5 changed files with 47 additions and 0 deletions
14
misc/setup/install-desktop-files.sh
Executable file
14
misc/setup/install-desktop-files.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
if ! test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
|
||||
exit 0
|
||||
fi
|
||||
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
|
||||
sed -e "s#^Exec=.*#Exec=$SETUP_INSTALLPATH/ioquake3#" \
|
||||
-e "s#^Icon=.*#Icon=$SETUP_INSTALLPATH/quake3.png#" \
|
||||
< $SETUP_INSTALLPATH/ioquake3.desktop.in \
|
||||
> $SETUP_INSTALLPATH/ioquake3.desktop
|
||||
$xdg_desktop_menu install --novendor $SETUP_INSTALLPATH/ioquake3.desktop
|
Loading…
Add table
Add a link
Reference in a new issue