Merge pull request #1589 from Vulpicula/patch-1

Fix openFile not working on Linux.
This commit is contained in:
player-03
2022-12-20 14:45:48 -05:00
committed by GitHub

View File

@@ -298,7 +298,7 @@ class System
#elseif mac #elseif mac
Sys.command("/usr/bin/open", [path]); Sys.command("/usr/bin/open", [path]);
#elseif linux #elseif linux
Sys.command("/usr/bin/xdg-open", [path, "&"]); Sys.command("/usr/bin/xdg-open", [path]);
#elseif (js && html5) #elseif (js && html5)
Browser.window.open(path, "_blank"); Browser.window.open(path, "_blank");
#elseif flash #elseif flash