Add ShowFileExplorer on Linux

This commit is contained in:
Wojtek Figat
2021-02-28 16:45:16 +01:00
parent 08a428416c
commit b3fdc9eddd
2 changed files with 10 additions and 0 deletions

View File

@@ -47,6 +47,15 @@ bool LinuxFileSystem::ShowOpenFileDialog(Window* parentWindow, const StringView&
return false;
}
bool LinuxFileSystem::ShowFileExplorer(const StringView& path)
{
const StringAsANSI<> pathAnsi(*path, path.Length());
char cmd[2048];
sprintf(cmd, "nautilus %s &", pathAnsi.Get());
system(cmd);
return false;
}
bool LinuxFileSystem::CreateDirectory(const StringView& path)
{
const StringAsANSI<> pathAnsi(*path, path.Length());