Skip to content

Commit

Permalink
Prevent nil clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlent committed Jan 4, 2020
1 parent 4ec4f2c commit dc7a01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cozycast-worker/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function start_server()
print ("xclip")
print (data.clipboard)
local xdotool = io.popen("xclip -selection clipboard", 'w')
xdotool:write(data.clipboard)
xdotool:write(data.clipboard or "")
xdotool:close()
print ("xdotool key ctrl+v")
os.execute ("xdotool key ctrl+v")
Expand Down

0 comments on commit dc7a01f

Please sign in to comment.