How to get this lua to work with wayland?
function copyPath()
local uri = mp.get_property("path")
local pipe = io.popen("xclip -silent -in -selection clipboard", "w")
pipe:write(uri)
pipe:close()
mp.osd_message("Path/URL copied!")
end
-- mp.register_script_message("copy-path", copyPath)
mp.add_key_binding("ctrl+SPACE", "copy-path", copyPath)