Hi all,
I am currently using the GNOME desktop on my Rocky 8 box and am encountering an issue when trying to disable the screensaver for my remote sessions running on NoMachine.
For reference, I want to keep the screensaver settings on my physical workstation to lock after a period of inactivity. However, I am looking for a way to disable the screen lock/screensaver only for the remote sessions via NoMachine.
I have created a simple script to accomplish this:
#!/bin/bash
gsettings set org.gnome.desktop.screensaver lock-enabled false
I am using the ‘UserScriptAfterStartSession’ parameter within the /usr/NX/etc/server.cfg to call the script at the start of any remote session, as shown in this NoMachine KB article. While I have successfully executed other scripts using this method, I have been unable to get this one to work.
If anyone has any insight or can recommend an alternative to achieving this goal, I am open to suggestions.
Thank you,