Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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
1  
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

 
discard

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.