Skip to content

Commit

Permalink
Linux: Remove --nodetach option for xsel copy. (#35180)
Browse files Browse the repository at this point in the history
The `--nodetach` option causes `clipboard(x)` to hang indefinitely on (most? All which I have tried) linux systems. Removing this option fixes `clipboard(x)`, but briefly spawns a child process. Since `clipboard(x)` is designed for interactive use, this shouldn't be an issue.

(cherry picked from commit 5dd6676)
  • Loading branch information
Joseph Wilson authored and KristofferC committed Apr 4, 2020
1 parent 1156956 commit bc6fa8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/InteractiveUtils/src/clipboard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ elseif Sys.islinux() || Sys.KERNEL === :FreeBSD
_clipboardcmd = nothing
const _clipboard_copy = Dict(
:xsel => Sys.islinux() ?
`xsel --nodetach --input --clipboard` :
`xsel --input --clipboard` :
`xsel -c`,
:xclip => `xclip -silent -in -selection clipboard`,
)
Expand Down

0 comments on commit bc6fa8f

Please sign in to comment.