From 3b42e0a06dc9732ed62de649e38f6ce208e1881b 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_js/hide/Ide.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/hide_js/hide/Ide.hx b/hide_js/hide/Ide.hx index 7716c017f..8bd0b8c48 100644 --- a/hide_js/hide/Ide.hx +++ b/hide_js/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 827f02875eb0c5ca55da963d22d67a2ad29fe632 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_js/hide/Ide.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hide_js/hide/Ide.hx b/hide_js/hide/Ide.hx index 8bd0b8c48..22562d219 100644 --- a/hide_js/hide/Ide.hx +++ b/hide_js/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"; } }