wrapper: use exec to avoid keeping shell process around, thanks codicodi for pointing it out

This commit is contained in:
John C. Allwein 2020-10-22 10:01:20 -04:00
parent 066975f968
commit 9cbb7d1fd7
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 50982AE5B444BE15
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = discord_arch_electron
pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance
pkgver = 0.0.12
pkgrel = 2
pkgrel = 3
url = https://discordapp.com
arch = x86_64
license = custom

View file

@ -4,7 +4,7 @@
pkgname=discord_arch_electron
_pkgname=discord
pkgver=0.0.12
pkgrel=2
pkgrel=3
pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance"
arch=('x86_64')
provides=('discord')
@ -39,7 +39,7 @@ package() {
# Create starter script for discord
echo "#!/bin/sh" >> "$pkgdir"/opt/$_pkgname/$_pkgname
echo "electron /opt/$_pkgname/resources/app.asar \$@" >> "$pkgdir"/opt/$_pkgname/$_pkgname
echo "exec electron /opt/$_pkgname/resources/app.asar \$@" >> "$pkgdir"/opt/$_pkgname/$_pkgname
# Set Permissions, symlinks
chmod 755 "$pkgdir"/opt/$_pkgname/$_pkgname