Skip to content

Commit

Permalink
Fix pattern matching for 'wl-clipboard' in is_wl_copy_installed funct…
Browse files Browse the repository at this point in the history
…ion (#124)
  • Loading branch information
Daja177 authored Apr 29, 2024
1 parent aeb451f commit b364795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/nix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b364795

Please sign in to comment.