upgpkg: discord-electron-openasar 0.0.112+846-2: fix wayland
Fix Wayland detection currently being broken in Electron 38 Remove now obsolete flags
This commit is contained in:
parent
7c3a85f240
commit
debf69d1eb
3 changed files with 9 additions and 4 deletions
|
|
@ -32,11 +32,16 @@ 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
|
||||
|
||||
unset flags_file krisp_bin
|
||||
|
||||
|
||||
exec /usr/lib/@ELECTRON@/electron \
|
||||
/usr/lib/@PKGNAME@/resources/app.asar \
|
||||
--ozone-platform-hint=auto \
|
||||
--gtk-version=3 \
|
||||
"${flags[@]}" "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue