Explorar o código

arch: use `exec` when lauching program (#467)

Using exec means that wrapper scripts can properly terminate processes. The `MikiDevLog/wallpaperengine-gui` gui now kill processes properly
Jean-Baptiste Bertrand hai 7 meses
pai
achega
cf764a88e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packaging/archlinux/PKGBUILD

+ 1 - 1
packaging/archlinux/PKGBUILD

@@ -47,7 +47,7 @@ package() {
     cat > "${pkgdir}/usr/bin/${_pkgname}" << EOF
 #!/bin/bash
 export LD_LIBRARY_PATH="/opt/${_pkgname}/lib:\$LD_LIBRARY_PATH"
-cd /opt/${_pkgname}; ./${_pkgname} "\$@"
+cd /opt/${_pkgname}; exec ./${_pkgname} "\$@"
 EOF
     chmod +x ${pkgdir}/usr/bin/${_pkgname}
     chmod +x ${pkgdir}/opt/${_pkgname}/linux-wallpaperengine