FIX: [STUDIO-3158] use nautilus to select file in linux

Change-Id: I37fc5f26c9b38ce749adf3ff7662f982a6f9f452
This commit is contained in:
chunmao.guo 2023-06-08 19:23:29 +08:00 committed by Lane.Wei
parent 10988f0bae
commit b76c9b756d

View file

@ -553,7 +553,7 @@ void desktop_open_any_folder( const std::string path )
#elif __APPLE__
openFolderForFile(from_u8(path));
#else
const char *argv[] = {"xdg-open", path.data(), nullptr};
const char *argv[] = {"nautilus", path.data(), nullptr};
// Check if we're running in an AppImage container, if so, we need to remove AppImage's env vars,
// because they may mess up the environment expected by the file manager.