Use StartupWMClass and remove duplicated cores in menu

Closes #260, #221
This commit is contained in:
probonopd authored and GitHub committed 2017-04-06 08:09:32 +02:00
1 parent 02fca135db
commit cd6c88fe83
1 file changed
+11
+11
View File
@@ -93,6 +93,17 @@ mv etc e
sed -i -e 's|/etc|../e|g' ./usr/bin/retroarch
sed -i -e 's|/usr|././|g' e/retroarch.cfg
# Workaround for:
# Two icons in dock
# https://github.com/probonopd/AppImageKit/issues/260
echo "StartupWMClass=retroarch" >> retroarch.desktop
# Workaround for:
# Duplicated cores in menu
# https://github.com/probonopd/AppImages/issues/221
find . -name mame_stable_libretro.so -type l -exec rm {} \;
find . -name mess_stable_libretro.so -type l -exec rm {} \;
VER1=$(find ../*.deb -name $LOWERAPP"_*" | head -n 1 | cut -d "~" -f 1 | cut -d "_" -f 2 | cut -d "-" -f 1 | sed -e 's|1%3a||g' )
GLIBC_NEEDED=$(glibc_needed)
VERSION=$VER1.glibc$GLIBC_NEEDED