From 6900d189718de3b25605fb73e4a402d7e7ac454f Mon Sep 17 00:00:00 2001 From: Vulpicula <57735830+Vulpicula@users.noreply.github.com> Date: Wed, 19 Oct 2022 18:50:15 -0700 Subject: [PATCH] Fix openFile not working on Linux. Thanks to LeotomasMC for some assistance with this. I noticed and was quite confused by the fact that certain things in Flixel failed to work on Linux, such as FlxG.openURL, which returned "xdg-open: unexpected argument '&'". This appears to fix that and seems to work quite fine, with that segment of Flixel now working once more. May be good to have someone more qualified than I check this out before er... merging, as I'm not exactly the best programmer around. --- src/lime/system/System.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime/system/System.hx b/src/lime/system/System.hx index aa3867a1f..ac6975396 100644 --- a/src/lime/system/System.hx +++ b/src/lime/system/System.hx @@ -298,7 +298,7 @@ class System #elseif mac Sys.command("/usr/bin/open", [path]); #elseif linux - Sys.command("/usr/bin/xdg-open", [path, "&"]); + Sys.command("/usr/bin/xdg-open", [path]); #elseif (js && html5) Browser.window.open(path, "_blank"); #elseif flash