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'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

1 Answer 1

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

 
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.