Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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'm trying to get this command line to work in a launcher on xfce4:

echo "myAdress" | xclip -selection clipboard

Xfce Launcher

If i use this command line in the standard terminal, there are no problems. Executed from the launcher nothing happens.

Edit: A workaround is to create a bash script with the command line above and add the path to the script in the command field from the launcher.

share|improve this question
up vote 0 down vote accepted

The solution is:

bash -c "echo -n "myAdress" | xclip -selection clipboard"

All thanks go to lloyd_b for his explanation.

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.