My dear illustrious List members and leaders of the Debian-users group: I used the contents in the following webpages:
https://www.tutorialspoint.com/run-a-script-on-startup-in-linux https://www.baeldung.com/linux/run-command-start-up I saved a file at "/etc/systemd/system/" named "rc-local.service" with the following lines: ------------------------------------------------ [Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local Description=Screensaver [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 ExecStart=mousepad Restart=always User=root Group=root Type=simple [Install] WantedBy=multi-user.target ------------------------------------------------ I also added the line in the file /etc/rc.local: mousepad But the program doesn't launch at startup. Where I am going wrong? Does it fail to start because the command is run before the GUI starts up? I don't want to use cron by editing crontab -e. I tried @reboot mousepad, but doesn't work. Please advise. Best wishes, Rajib B