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've added to Startup Applications this command:

notify-send "Hello User" "Welcome back to Ubuntu 12.10" --icon=/usr/share/unity-greeter/cof.png -a "Computer" -u critical

It does not appear at startup or login but works when run from terminal.

I've also tried putting the command in /etc/rc.local, but it doesn't work.

How can I run this command at each startup/login?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

I'm not sure why it isn't working for you, maybe because it runs before Unity is fully loaded. You could try adding a time delay using the sleep command.

I got it work by creating this script:

sleep 2s
notify-send "Hello User" "Welcome back to Ubuntu 12.10" --icon=/usr/share/unity-greeter/cof.png -a "Computer" -u critical

Save this to a file, set it as executable using chmod +x <filename> and add it to your start applications list.

If this doesn't work, try increasing the delay before the notify-send command runs.

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.