Disable xscreensaver lock4/29/2023 However, this can be easily overcome by increasing the service's waiting time to restart, for example RestartSec=3min. If you run xscreensaver from the systemd service, in case you set Blank After to be too small, the screensaver will be activated too soon, leading to the creation of the root window and drawing operation of the demo program may fail. If you run xscreensaver from the desktop file, the desktop environment is ready to run it at the appropriate time. So how is the "safety" different? The difference is mostly at startup time (when logging into the desktop environment). If you want to control xscreensaver running, stopping, even disabling automatic startup without affecting other users, and want screensaver and screen locking activities to be performed exactly, use the systemd service. If you are not interested in controlling how xscreensaver operates and want it to run safely during a desktop environment session, use the desktop file. rvice or sktop? Which one to use depends on your preference. Therefore you need to install it manually, as a root user: cp driver/xscreensaver-systemd /usr/bin/Ĥ) Creating user service You create the xscreensaver service as follows, as the root user: cat > /usr/lib/systemd/user/rvice /etc/xdg/autostart/sktop << "EOF" Type=Application Name=Screensaver Comment=Launch screensaver and locker program Icon=preferences-desktop-screensaver Exec=xscreensaver -no-splash TryExec=xscreensaver OnlyShowIn=KDE GNOME XFCE X-GNOME-Autostart-Notify=false X-KDE-StartupNotify=false EOF However, the default installation does not copy this program file. The package has been configured using the libsystemd library and the compilation process creates an xscreensaver-systemd helper program. configure -prefix=/usr -with-systemdģ) Installing Run the following installation command, as the root user: make install If you want to build the package yourself, follow the instructions below: 1) Package configuration. However, building it needs a little meticulous so as not to cause conflict in the system when the screensaver activates.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |