Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add my gui application to autostart, while remaining cross desktop.

.xinitrc looked suitable, but it's not. KDE does not listen to it. 1

If possible, I'd like to prevent adding a custom autostart command for each desktop environment.

How can I do so?

share|improve this question
up vote 3 down vote accepted

Put your application's .desktop file in ~/.config/autostart.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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