[BUG] Invalid file '/run/current-system/sw/bin/gsr-kms-server' for capability operation
Closed this issue · 3 comments
Running gpu-screen-recorder -w screen -f 60 -c mp4 -a alsa_output.pci-0000_00_1f.3.analog-stereo.monitor -r 60 -o ~/Videos/
requires authentication for org.freedesktop.policykit.exec. According to the program, in order to bypass that, I must run sudo setcap cap_sys_admin+ep '/run/current-system/sw/bin/gsr-kms-server'
. However, that returns with an error of Invalid file '/run/current-system/sw/bin/gsr-kms-server' for capability operation
.
Device: Dell Vostro
CPU: Intel i3 12100
GPU: Nvidia GTX 1650
Distro: NixOS Unstable
Screen: Wayland
Version: latest from NixOS package store
The issue has been reported in nixos before: NixOS/nixpkgs#349648 and the fix is here: NixOS/nixpkgs#349665
Oh my bad. Thanks!
After that has been merged and if it's not fixed yet then you can re-open this (or if you are willing to try that pull request)