From f274101fbde4a7daa9e9e5b285f70a6270ad8d4b Mon Sep 17 00:00:00 2001 From: christoph-heinrich Date: Wed, 19 Apr 2023 09:11:56 +0200 Subject: [PATCH] fix: failing to detect macos platform (#513) With the change to use the new `platform` property, the platform 'macos' also got renamed to 'darwin', but the platform checks were not adjusted to the new name. --- scripts/uosc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/uosc.lua b/scripts/uosc.lua index 2de9b53..3b5c380 100644 --- a/scripts/uosc.lua +++ b/scripts/uosc.lua @@ -1003,7 +1003,7 @@ bind_command('show-in-directory', function() if state.platform == 'windows' then utils.subprocess_detached({args = {'explorer', '/select,', state.path}, cancellable = false}) - elseif state.platform == 'macos' then + elseif state.platform == 'darwin' then utils.subprocess_detached({args = {'open', '-R', state.path}, cancellable = false}) elseif state.platform == 'linux' then local result = utils.subprocess({args = {'nautilus', state.path}, cancellable = false}) @@ -1188,7 +1188,7 @@ bind_command('open-config-directory', function() if state.platform == 'windows' then args = {'explorer', '/select,', config.path} - elseif state.platform == 'macos' then + elseif state.platform == 'darwin' then args = {'open', '-R', config.path} elseif state.platform == 'linux' then args = {'xdg-open', config.dirname}