aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-15 18:11:47 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-15 18:12:33 +0200
commitbae4504370f335d64697a8d114174134b44d5f98 (patch)
tree919f6efac508ed149cd62d76f5465cffc01ef6fe /install.sh
parent3ae89c8d7c25f23a70bdec34c6e43cfe916f2d0c (diff)
Install systemd service in install script, skip empty audio device
Stop systemd service with SIGINT
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 1ea57bf..c82ad44 100755
--- a/install.sh
+++ b/install.sh
@@ -11,6 +11,9 @@ strip gpu-screen-recorder
install -Dm755 "gsr-kms-server" "/usr/bin/gsr-kms-server"
install -Dm755 "gpu-screen-recorder" "/usr/bin/gpu-screen-recorder"
+if [ -d "/usr/lib/systemd/user" ]; then
+ install -Dm644 "extra/gpu-screen-recorder.service" "/usr/lib/systemd/user/gpu-screen-recorder.service"
+fi
setcap cap_sys_admin+ep /usr/bin/gsr-kms-server
setcap cap_sys_nice+ep /usr/bin/gpu-screen-recorder