wl-clipboard icon indicating copy to clipboard operation
wl-clipboard copied to clipboard

Does wl-copy work from atjobs? I certainly cannot make it work piping within emacs

Open jidanni opened this issue 1 year ago • 1 comments

In emacs, M-| runs the command shell-command-on-region

Well if that command is wl-cppy, everything gets stuck.

I even tried wrappers like

(set -eux
cd /tmp
t=/tmp/_my_wl-copy_m_$$
cat > oo <<EOF
set -eux
cat > $t
ls -l $t
sleep 11
cd /tmp;
(cat $t | nohup wl-copy -f) &
echo Done.
EOF
sh /tmp/oo
)&

Apparently wl-copy needs a real terminal around to function.

I wonder if wl-copy would work from a cronjob or atjob.

jidanni avatar Jul 15 '24 12:07 jidanni

Workaround: https://emacs.stackexchange.com/questions/82431/why-does-wl-copy-get-stuck-in-emacs#comment138781_82431 .

jidanni avatar Oct 22 '24 22:10 jidanni