From 65fb83375c5030b5359b4d0390eb94bdc27d26bc Mon Sep 17 00:00:00 2001 From: ayes-web Date: Mon, 19 Jun 2023 20:38:39 +0300 Subject: [PATCH] Fix xorg clipboard --- videoclip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/videoclip.lua b/videoclip.lua index f468e89..6d51ede 100644 --- a/videoclip.lua +++ b/videoclip.lua @@ -538,9 +538,9 @@ function main_menu:upload_catbox() local cb if session_type == "x11\n" then local clipboard_command = { - "xclip", "-sel", "clip" + "/bin/sh", "-c", "'echo " .. r.stdout .. " | xclip -sel clip'" } - cb = subprocess(clipboard_command, r.stdout) + cb = subprocess(clipboard_command) else -- wl-copy is from wl-clipboard local clipboard_command = {