Write menu information to /usr/lib/menu/wine.
Try to autodetect KDE version using kde-config.
This commit is contained in:
parent
fc2be7edcc
commit
35ba7b9e81
|
@ -145,6 +145,10 @@ then
|
|||
xpmicon=""
|
||||
fi
|
||||
mdk_entry >> "$HOME/.menu/wine"
|
||||
if [ -d "/usr/lib/menu" ]
|
||||
then
|
||||
mdk_entry >> "/usr/lib/menu/wine"
|
||||
fi
|
||||
update-menus > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
|
@ -152,6 +156,23 @@ fi
|
|||
|
||||
if [ -d "$HOME/.kde" ]
|
||||
then
|
||||
kdeversion=0
|
||||
if which kde-config >/dev/null 2>&1
|
||||
then
|
||||
kdeversion=`kde-config -v | grep KDE: | sed -n "s/^KDE: \([^.]*\)\..*$/\1/p"`
|
||||
fi
|
||||
|
||||
if [ $kdeversion = 2 ]
|
||||
then
|
||||
copy_icon "$HOME/.kde/share/applnk/Wine"
|
||||
if [ $mode = "menu" ]
|
||||
then
|
||||
gnome_entry > "$HOME/.kde/share/applnk/Wine/$link.desktop"
|
||||
elif [ -d "$HOME/Desktop" ]
|
||||
then
|
||||
gnome_entry > "$HOME/Desktop/$link.desktop"
|
||||
fi
|
||||
else
|
||||
copy_icon "$HOME/.kde/share/applnk/Wine"
|
||||
if [ $mode = "menu" ]
|
||||
then
|
||||
|
@ -170,6 +191,7 @@ then
|
|||
ps u -C kfm >/dev/null 2>/dev/null && \
|
||||
kfmclient refreshDesktop
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.kde2" ]
|
||||
|
@ -182,8 +204,6 @@ then
|
|||
then
|
||||
gnome_entry > "$HOME/Desktop2/$link.desktop"
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue