Skip to content

Commit

Permalink
Linux: Remove --nodetach option for xsel copy. (JuliaLang#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 and oxinabox committed Apr 8, 2020
1 parent 24e10a6 commit 16080dd
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 16080dd

Please sign in to comment.