I have read that adding a .desktop file to /etc/xdg/autostart can start an application at startup. I did the same to execute my application. But nothing happens on startup. Following is the content of my .desktop file:

[Desktop Entry]

Can anybody tell what is going wrong(Ubunu 14.04)

  • Is /home/anaswara/eclipse_agent/bin/Screenshot an executable and working fine with terminal? or Is this .desktop works with normal way? – Pandya Jan 22 '16 at 5:28
  • that is an executable and works from terminal – Jackzz Jan 22 '16 at 5:29
  • And .desktop file also works right? – Pandya Jan 22 '16 at 5:30
  • I am not sure..How can I confirm that – Jackzz Jan 22 '16 at 5:30
  • Just double-click to run from file manager – Pandya Jan 22 '16 at 5:31

Copy and Paste the .desktop file to /home/'user'/.config/autostart/, e.g. /home/rumi/.config/autostart/app.desktop where rumi is the user and app.desktop is the .desktop file.

Should work fine.

  • 4
    how to debug if "should work fine" becomes "doesn't work fine"? – pcnate Oct 29 '17 at 3:45
  • Worked for me on Ubuntu 16.04. Copied some desktop file that chrome created using the "Add to desktop" feature. – AlikElzin-kilaka Mar 26 '18 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.