Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
conky

But it does not work.

share|improve this question

2 Answers 2

Provided that you installed your conky correctly use the following:

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

#!/bin/bash  
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]
Type=Application
Exec=sh -c "sleep 10; conky;"
Name=Conky
Comment=Autostart conky at login

Save.


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

 
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.