We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 154edc2 commit 4320fddCopy full SHA for 4320fdd
1 file changed
src/DataFrame/Display/Web/Plot.hs
@@ -1062,9 +1062,10 @@ showInDefaultBrowser (HtmlPlot p) = do
1062
putStr "Saving plot to: "
1063
putStrLn fullPath
1064
T.writeFile fullPath p
1065
- if operatingSystem == "mingw32"
1066
- then openFileSilently "start" fullPath
1067
- else openFileSilently "xdg-open" fullPath
+ case operatingSystem of
+ "mingw32" -> openFileSilently "start" fullPath
+ "darwin" -> openFileSilently "open" fullPath
1068
+ _ -> openFileSilently "xdg-open" fullPath
1069
pure ()
1070
1071
openFileSilently :: FilePath -> FilePath -> IO ()
0 commit comments