From 4c5168a976f7f4b599c7ec513e3e99b2b892c087 Mon Sep 17 00:00:00 2001 From: Denys Date: Tue, 19 Sep 2023 16:50:17 +0200 Subject: [PATCH] Use `xdg-open` to open file manager in Linux `nautilus` is GNOME file manager. Other distros might use another FM. As a common ground we can use `xdg-open` which is a part of `freedesktop.org` and should be available almost everywhere. --- Source/Engine/Platform/Linux/LinuxFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Platform/Linux/LinuxFileSystem.cpp b/Source/Engine/Platform/Linux/LinuxFileSystem.cpp index f0d5ff499..279813470 100644 --- a/Source/Engine/Platform/Linux/LinuxFileSystem.cpp +++ b/Source/Engine/Platform/Linux/LinuxFileSystem.cpp @@ -136,7 +136,7 @@ bool LinuxFileSystem::ShowFileExplorer(const StringView& path) { const StringAsANSI<> pathAnsi(*path, path.Length()); char cmd[2048]; - sprintf(cmd, "nautilus %s &", pathAnsi.Get()); + sprintf(cmd, "xdg-open %s &", pathAnsi.Get()); system(cmd); return false; }