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:
parent
0184a4b20c
commit
aef69aefec
3 changed files with 9 additions and 3 deletions
2
.SRCINFO
2
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = discord_arch_electron
|
||||
pkgdesc = Discord using system provided electron for increased security and performance
|
||||
pkgver = 0.0.112
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
epoch = 1
|
||||
url = https://discord.com
|
||||
install = discord_arch_electron.install
|
||||
|
|
|
|||
2
PKGBUILD
2
PKGBUILD
|
|
@ -10,7 +10,7 @@ _pkgname=discord
|
|||
_electron=electron
|
||||
pkgname=${_pkgname}_arch_electron
|
||||
pkgver=0.0.112
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
epoch=1
|
||||
pkgdesc="Discord using system provided ${_electron} for increased security and performance"
|
||||
arch=('any')
|
||||
|
|
|
|||
|
|
@ -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[@]}" "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue