From 453961c7a96fe1512944ad38a272b143956e37b1 Mon Sep 17 00:00:00 2001 From: Bastien Maureille Date: Wed, 31 Dec 2025 11:03:49 +0100 Subject: [PATCH 1/2] Handle Linux platforms in showFileInExplorer --- hide/Ide.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/hide/Ide.hx b/hide/Ide.hx index 762c6a31a..02fcbe492 100644 --- a/hide/Ide.hx +++ b/hide/Ide.hx @@ -1774,6 +1774,7 @@ class Ide extends hide.tools.IdeData { Sys.command(cmd); }; case "Mac": Sys.command("open " + haxe.io.Path.directory(path)); + case "Linux": Sys.command("xdg-open " + haxe.io.Path.directory(path)); default: throw "Exploration not implemented on this platform"; } } From 2d0ef6d90a8845c247421a1ca974e07493519a7c Mon Sep 17 00:00:00 2001 From: Bastien Maureille Date: Wed, 31 Dec 2025 13:18:52 +0100 Subject: [PATCH 2/2] Use dbus interface on linux for showInExplorer --- hide/Ide.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hide/Ide.hx b/hide/Ide.hx index 02fcbe492..04248c94c 100644 --- a/hide/Ide.hx +++ b/hide/Ide.hx @@ -1774,7 +1774,8 @@ class Ide extends hide.tools.IdeData { Sys.command(cmd); }; case "Mac": Sys.command("open " + haxe.io.Path.directory(path)); - case "Linux": Sys.command("xdg-open " + haxe.io.Path.directory(path)); + case "Linux": + Sys.command('dbus-send --session --dest=org.freedesktop.FileManager1 --type=method_call /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"$path" string:""'); default: throw "Exploration not implemented on this platform"; } }