From b364795ec4f048ef7bd33a1d7da3b2ccbffebf80 Mon Sep 17 00:00:00 2001 From: Daja177 <59206235+Daja177@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:35:41 +0200 Subject: [PATCH] Fix pattern matching for 'wl-clipboard' in is_wl_copy_installed function (#124) --- platform/nix.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/nix.lua b/platform/nix.lua index c1d7783..cbf6c85 100644 --- a/platform/nix.lua +++ b/platform/nix.lua @@ -14,7 +14,7 @@ if h.is_mac() then elseif h.is_wayland() then local function is_wl_copy_installed() local handle = h.subprocess { 'wl-copy', '--version' } - return handle.status == 0 and handle.stdout:match("wl-clipboard") ~= nil + return handle.status == 0 and handle.stdout:match("wl%-clipboard") ~= nil end self.clip_util = "wl-copy"