aboutsummaryrefslogtreecommitdiff
path: root/extra/meson_post_install.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-17 22:29:24 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-17 22:29:24 +0200
commite5716e69a2b104810c04b65cd382069e4affa4df (patch)
treec1cd9f486791f1d526e05b8ed1ff1b3fabd6ed80 /extra/meson_post_install.sh
parent463c1d61f0f4cc3b02eebf69bedfde578a8ad128 (diff)
Remove setcap sys nice because it breaks portal :(
Diffstat (limited to 'extra/meson_post_install.sh')
-rwxr-xr-xextra/meson_post_install.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/extra/meson_post_install.sh b/extra/meson_post_install.sh
index f1f6a5a..6b432b7 100755
--- a/extra/meson_post_install.sh
+++ b/extra/meson_post_install.sh
@@ -1,5 +1,9 @@
#!/bin/sh
-setcap cap_sys_admin+ep ${MESON_INSTALL_DESTDIR_PREFIX}/bin/gsr-kms-server \
+/sbin/setcap cap_sys_admin+ep ${MESON_INSTALL_DESTDIR_PREFIX}/bin/gsr-kms-server \
|| echo "\n!!! Please re-run install as root\n"
-setcap cap_sys_nice+ep ${MESON_INSTALL_DESTDIR_PREFIX}/bin/gpu-screen-recorder
+
+# Cant do this because it breaks desktop portal (create session)!!!.
+# For some reason the desktop portal tries to access /proc/gpu-screen-recorder-pid/root from the portal process
+# which doesn't work because for some reason CAP_SYS_NICE on a program makes /proc/self/root not readable by other processes.
+#/sbin/setcap cap_sys_nice+ep ${MESON_INSTALL_DESTDIR_PREFIX}/bin/gpu-screen-recorder