Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 am using Ubuntu 12.04. I want to automatically start a service after login with LightDM. This service is not meant to start on boot, but after X is initialized.

share|improve this question

If you want it to run after you login (which is how I read the title of your question), search for Startup Application in Unity and add your service there. If you are using the older desktop of Ubuntu Classic you should have something like that in the menu System Tools → Preferences → Startup Applications

share|improve this answer
You are right... It will depend on what he/she exactly wants to do. The question formulation needs to be enhanced. ( I like the way we meet in lots of question Anthon :)) ) – Bichoy Apr 17 '13 at 4:22
Bichoy's solution does run in the user's session (so after login), not when the X server is initialized. But it doesn't run after a graphical login. – Gilles Apr 17 '13 at 23:27

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.