Skip to content

Commit

Permalink
Fix openFileExplorerFolderPortable on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom McLaughlin committed Nov 9, 2024
1 parent 8d6d9d1 commit 9b04efb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}

module Test.Sandwich.Formatters.TerminalUI.CrossPlatform (
openFileExplorerFolderPortable
Expand All @@ -19,6 +18,10 @@ openFileExplorerFolderPortable folder = do
findExecutable "explorer.exe" >>= \case
Just p -> void $ readCreateProcessWithExitCode (proc p [folder]) ""
Nothing -> return ()
#elif darwin_HOST_OS
openFileExplorerFolderPortable :: String -> IO ()
openFileExplorerFolderPortable folder =
void $ readCreateProcessWithExitCode (proc "open" [folder]) ""
#else
openFileExplorerFolderPortable :: String -> IO ()
openFileExplorerFolderPortable folder =
Expand Down

0 comments on commit 9b04efb

Please sign in to comment.