소스 검색

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 7 달 전
부모
커밋
cf764a88e2
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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