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.
  • Loading branch information
Joseph Wilson authored Mar 30, 2020
1 parent 110e435 commit 5dd6676
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 5dd6676

Please sign in to comment.