Build: Change AppImage WM_CLASS from AppRun.wrapped

This commit is contained in:
TheTechnician27 2025-02-09 15:51:10 -06:00
parent de631a1052
commit cdb712deb7
1 changed files with 5 additions and 0 deletions

View File

@ -212,6 +212,11 @@ if [[ "${GIT_VERSION}" == "" ]]; then
fi
fi
# Changes WM_CLASS name to the correct one instead of AppRun.wrapped (helps GNOME)
sed 's/Exec=AppRun.wrapped/Exec=net.pcsx2.PCSX2/g' $OUTDIR/usr/share/applications/net.pcsx2.PCSX2.desktop
rm -f "$NAME.AppImage"
ARCH=x86_64 VERSION="${GIT_VERSION}" "$APPIMAGETOOL" -s "$OUTDIR" && mv ./*.AppImage "$NAME.AppImage"
# Changes WM_CLASS name to the correct one instead of AppRun.Wrapped (helps GNOME)
sed 's/Exec=AppRun.wrapped/Exec=net.pcsx2.PCSX2/g' $OUTDIR/usr/share/applications/net.pcsx2.PCSX2.desktop