Run gpu-screen-recorder without superuser for gsr-kms-server popup

I want to do key binding for screen record via gpu-screen-recorder, i bind keys in gnome for this command gpu-screen-recorder -w screen -f 60 -a default_output -c mp4 -o "/home/user1/Videos/temp.mp4" Then I press hot keys and command run it start gsr-kms-server and popup window for superuser access popup, how can I configure nixos to start it without any popup?

you need a security wrapper, here’s how I do it in my config: nixconfig/modules/gaming/replays.nix at 75108138fa4adc8930b70c3756fed7713f542659 - quasigod/nixconfig - Codeberg.org

The better option however would be using the desktop portal option and the restore session option, but this will only work if GNOME supports restoring these sessions. I’m using COSMIC which doesn’t yet support it.

1 Like

It should work if you set programs.gpu-screen-recorder.enable = true

Oh cool, I didn’t know it had a module.