copies a text phrase to the clipboard, that I would then ctrl-v paste into an app's text box.
I have researched the command that should work:
echo -n 'blah blah blah' | xclip -selection clipboard
This works fine from the terminal, but does nothing when I create a .desktop file,
and place this in the Exec field (and then drag the item out of the menu to the panel's quick launch).
Here is the .desktop file:
Code: Select all
[Desktop Entry]
Name=PPtoClipboard
Comment=Copy the PP to the Clipboard
Exec=echo -n 'blah blah blah' | xclip -selection clipboard
Icon=/home/scott/.local/share/applications/PPtoClipboard.png
Terminal=true
Type=Application
Categories=GNOME;GTK;Utility;
StartupNotify=true
I have tried Terminal=false, =true, and commented out.
I have tried:
qterminal -e "echo -n 'blah blah blah' | xclip -selection clipboard"
qterminal -e 'echo -n "blah blah blah" | xclip -selection clipboard'
and (I think)
qterminal -e echo -n 'blah blah blah' | xclip -selection clipboard
I am probably overlooking something basic, but I don't know what...
I am using Debian testing lxqt, dating from 20190311, and updated/upgraded
from time to time.
scott@ASUS-PRIME-B350M-A-CSM:~$ uname -a
Linux ASUS-PRIME-B350M-A-CSM 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 (2019-01-17) x86_64 GNU/Linux
scott@ASUS-PRIME-B350M-A-CSM:~$ lsb_release -dsc
Debian GNU/Linux bullseye/sid
bullseye
scott@ASUS-PRIME-B350M-A-CSM:~$ echo $DESKTOP_SESSION
/usr/share/xsessions/lxqt