CoolUtil openURL fix for Linux users (#378)

This commit is contained in:
FourLion4L
2024-09-06 12:48:32 +02:00
committed by GitHub
parent 48758c8176
commit 16fa3046e2
+2 -2
View File
@@ -706,7 +706,7 @@ class CoolUtil
*/
@:noUsing public static inline function openURL(url:String) {
#if linux
Sys.command('/usr/bin/xdg-open', [url, "&"]);
Sys.command('/usr/bin/xdg-open', [url]);
#else
FlxG.openURL(url);
#end
@@ -874,4 +874,4 @@ enum abstract CoolSfx(Int) from Int {
var CHECKED = 3;
var UNCHECKED = 4;
var WARNING = 5;
}
}