From 258fd63d254a67bee43cfd655e412140b1b88cb6 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Thu, 27 Jul 2023 22:10:20 +0300 Subject: [PATCH] fix(clipshot): hopefully fix platform detection --- clipshot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clipshot.lua b/clipshot.lua index 5918f6d..d65ef89 100644 --- a/clipshot.lua +++ b/clipshot.lua @@ -18,7 +18,7 @@ if lib == 'so' then -- Linux/BSD local type = o.type ~= '' and o.type or 'image/jpeg' cmd = {'xclip', '-sel', 'c', '-t', type, '-i', file} end -elseif lib == 'dll' then -- Windows +elseif lib ~= 'dylib' then -- Windows file = os.getenv('TEMP')..'\\'..o.name cmd = { 'powershell', '-NoProfile', '-Command', ([[& {