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.

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

There is a Linux program I like which is Conky, when I run conky -c mycustomconf.txt it runs fine.

I want this program to run automatically when I start my computer, without having to type in the command again to start it.

How can I do this?

I am using Ubuntu with Xfce4.

share|improve this question
up vote 3 down vote accepted

You can add programs that you wish to start up alongside Xfce to your startup items using xfce4-autostart-editor, which is accessible at Settings, and then "Xfce 4 Autostarted Applications".

share|improve this answer
@MaxMackie xinitrc is not environment independent (and Xfce doesn't even read it). – Chris Down Nov 12 '12 at 3:06
Really? I always thought that X read the file upon startup (unless told otherwise). Sorry for the misinformation. – n0pe Nov 12 '12 at 3:23
@MaxMackie It's passed by certain X startup programs (most notably startx) rather than being implicitly read by X itself. – Chris Down Nov 12 '12 at 3:25
Thanks for the info – n0pe Nov 12 '12 at 3:28

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.