From 6c571a8296339aa9b97ec2813d7acc88a6174f93 Mon Sep 17 00:00:00 2001 From: TheColorman Date: Mon, 26 Jun 2023 14:56:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Linux=20clipboard=20error?= =?UTF-8?q?=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform.lua b/platform.lua index 2999691..652621d 100644 --- a/platform.lua +++ b/platform.lua @@ -56,8 +56,8 @@ this.clipboard = (function() local handle = io.popen(h.is_wayland() and "wl-copy" or "xclip -i -selection clipboard", 'w') if handle then handle:write(text) - handle:close() - return { status = 0 } + local suc, exit, code = handle:close() + return { status = code } else return { status = 1 } end