[bin] Copy dropped element into primary clipboard

This commit is contained in:
Sebastian Schulze 2018-08-10 22:39:15 +02:00
parent 3d9de65fc6
commit 14fbb8b7c7
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 1 additions and 1 deletions

View File

@ -16,5 +16,5 @@ Net::SCP.start("drop.bascht.space", "bascht") do |scp|
scp.upload(file.expand_path.to_s, "/home/bascht/drop/#{new_name}")
end
Open3.popen3( "xclip" ){ |input, _, _| input << url }
Open3.popen3( "xclip -i -selection clipboard" ){ |input, _, _| input << url }
system("xdg-open '#{url}'")