Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jidanni opened this issue Jul 15, 2024 · 0 comments

Comments

@jidanni
Copy link

jidanni commented Jul 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant