upgpkg: discord 0.0.112-2: fix wayland

Fix Wayland detection currently being broken in Electron 38
Remove now obsolete flags
This commit is contained in:
Manuel 2025-10-16 22:21:02 +02:00
parent 0184a4b20c
commit aef69aefec
Signed by: Manuel
GPG key ID: 4085037435E1F07A
3 changed files with 9 additions and 3 deletions

View file

@ -32,7 +32,13 @@ for line in "${MAPFILE[@]}"; do
fi
done
if [[ -e "${XDG_RUNTIME_DIR:-}/${WAYLAND_SOCKET:-}" || -e "${WAYLAND_DISPLAY:-}" || "${XDG_SESSION_TYPE:-}" == "wayland" ]]; then
# work around electron's broken wayland detection
# TODO: remove when Arch updates to an electron release that includes the fix
# https://github.com/electron/electron/pull/48301
flags+=("--ozone-platform=wayland")
fi
exec /usr/bin/${electron} \
/usr/share/${name}/resources/app.asar \
--ozone-platform-hint=auto \
"${flags[@]}" "$@"