dec05eba / gpu-screen-recorder-issues

GPU Screen Recorder issue tracker
20 stars 0 forks source link

[BUG] Invalid file '/run/current-system/sw/bin/gsr-kms-server' for capability operation #55

Closed Gxnum closed 1 month ago

Gxnum commented 1 month ago

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

dec05eba commented 1 month ago

The issue has been reported in nixos before: https://github.com/NixOS/nixpkgs/issues/349648 and the fix is here: https://github.com/NixOS/nixpkgs/pull/349665

Gxnum commented 1 month ago

Oh my bad. Thanks!

dec05eba commented 1 month ago

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)