I searched and found out that I can make an application start while the system boots by using Startup Applications
from the dash. But if I want to write a .desktop
file, in which directory should I save the file and also what should be the contents of the .desktop
file?
I found this code snippet from here
[Desktop Entry]
Type=Application
Name=<Name of application as displayed>
Exec=<command to execute>
Icon=<full path to icon>
Comment=<optinal comments>
X-GNOME-Autostart-enabled=true
If this is valid and works then what should I write in the Exec
?
The name of my application is Albert
, which does the searching in the file system like you can search in dash
. So writing Albert
in the Exec
is valid?
Exec=~/Desktop/path/to/Albert
won't work, you'll have to writeExec=/home/USER_NAME/Desktop/path/to/Albert
and so. – pomsky Oct 10 '17 at 16:11usr/bin/albert
. So according to you,Exec=/home/username/usr/bin/albert
I should write this? And also rest of the codes I've posted are ok? – sphoenix Oct 10 '17 at 16:16.desktop
file? – sphoenix Oct 10 '17 at 16:20