I'm trying to add a program path /usr/bin/xscreensaver-demo
, to file so my screensaver will start at boot. But I can't save it. I don't have the permission to change it and save it.
I have tried this in both Brackets and gedit.
/etc/rc.local
:
# By default this script does nothing
/usr/bin/xscreensaver-demo
exit 0
I thought of using a sudo
command in the terminal but I don't know what command to execute to edit that file with superuser privilege and save it.
/etc/rc.local
probably isn't going to work for a screensaver application - look at How do I start applications automatically on login? instead – steeldriver Sep 23 '16 at 13:04