diff options
-rwxr-xr-x | extra/meson_post_install.sh | 8 |
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 |