I'm confusion in the latest Ubuntu 17.04 Gnome, I even cannot find the file
/etc/rc.d/rc.local. If the system has it, I can add my command in it. Then the command will run once the system start. But since this file is non-exist,how should I implement it?
To run an application when the system start, put your
.desktop file in
You can use the crontab for this if it should be simply done at reboot, you can do it in your own crontab or in other users crontab, depending on which you need to use
sudo crontab -e -u <username>
If you are editing your own crontab you can omit
sudo and the
-u <username>. Simply adding a line like this suffices:
Hope it helps, for further reading see the manpage for the
crontab command .