Skip to content

Commit

Permalink
Build: Change AppImage WM_CLASS from AppRun.wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechnician27 committed Feb 9, 2025
1 parent de631a1 commit cdb712d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/scripts/linux/appimage-qt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 216 in .github/workflows/scripts/linux/appimage-qt.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/scripts/linux/appimage-qt.sh#L216

Double quote to prevent globbing and word splitting.

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

0 comments on commit cdb712d

Please sign in to comment.