upgpkg: discord-electron 0.0.34-2: fix autostart

* Fix autostart as suggested by @LRitzdorf
* Improve use of sed commands
* Directly execute electron binary
This commit is contained in:
Manuel 2023-11-09 16:57:04 +01:00
parent c483c7acdc
commit 5f26ecb9ed
Signed by: Manuel
GPG key ID: 4085037435E1F07A
3 changed files with 21 additions and 12 deletions

View file

@ -39,7 +39,7 @@ done
unset flags_file krisp_bin krisp_b2
exec /usr/bin/electron@ELECTRON@ \
exec /usr/lib/@ELECTRON@/electron \
/usr/lib/@PKGNAME@/app.asar \
--ozone-platform-hint=auto \
"${flags[@]}" "$@"