Ubuntu - XScreenSaver startup with systemd instead...

Good gawd these distro things spread like VD's. How many flavors of Ubuntu do we really need?
Post Reply
User avatar
«FC»Crimson
Administrator
Posts: 117
Joined: Fri Oct 02, 2020 3:33 am
Location: Chicago
Contact:

Ubuntu - XScreenSaver startup with systemd instead...

https://www.linuxbabe.com/ubuntu/instal ... 8-04-19-04
First, execute the following command to create a directory for storing Systemd service file of individual users.

Code: Select all

mkdir -p ~/.config/systemd/user/
Then create xscreensaver.service file with a command line text editor such as Nano

Code: Select all

nano ~/.config/systemd/user/xscreensaver.service
Copy and paste the following text into the fie.

Code: Select all

[Unit]
Description=XScreenSaver
[Service]
ExecStart=/usr/bin/xscreensaver -nosplash
[Install]
WantedBy=default.target
To save the file in Nano text editor, press CTRL+ O, then press Enter to confirm. Press CTRL+X to exit. Finally, enable this service so that XScreenSaver will be automatically started at boot time.

Code: Select all

systemctl --user enable xscreensaver
Post Reply