Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 autostart Conky in Ubuntu 12.04 / XFCE. I tryed to start this script with "automatic starting applications" in sessions options:

sleep 6

But it does not work.

share|improve this question

Provided that you installed your conky correctly use the following:

Name a file .conky_startup and put the following lines in it:

sleep 10 && conky ;

Put the file in your home directory (the directory with your username).

Next go to Session and Startup and the tab Application Autostart , create a new entry with Add and fill in a name and a discription and the path to .conky_startup. Than reboot and conky should start. You might have to change the sleeptime a bit for the best result.

share|improve this answer

You don't need a script for an easy command like that.

Option 1: With GUI

You can add a new entry with the GUI xfce4-session-settings, in Settings > Session & Startup > Application autostart :

Name = Conky

Comment = Autostart conky at login

Command = sh -c "sleep 10; conky;"

Option 2 : Manually (commandlines)

You can add a new file.desktop (autostart files) in $HOME/.config/autostart :

mousepad ~/.config/autostart/conky.desktop

Paste this in the Mousepad window :

[Desktop Entry]
Exec=sh -c "sleep 10; conky;"
Comment=Autostart conky at login


Option 3 : with only one commandline (TADAAAM!)

echo -e '[Desktop Entry]\nType=Application\nExec=sh -c "sleep 10; conky;"\nName=Conky\nComment=Autostart conky at login' | tee > ~/.config/autostart/conky.desktop

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.