Merge pull request #115704 from brandonhare/fix-show-app-in-file-explorer

Fix 'Show In File Manager' launching apps
This commit is contained in:
Rémi Verschelde
2026-02-02 10:10:42 +01:00
+5 -2
View File
@@ -532,8 +532,11 @@ String OS_MacOS::get_system_dir(SystemDir p_dir, bool p_shared_storage) const {
Error OS_MacOS::shell_show_in_file_manager(String p_path, bool p_open_folder) {
bool open_folder = false;
if (DirAccess::dir_exists_absolute(p_path) && p_open_folder) {
open_folder = true;
if (p_open_folder) {
Ref<DirAccess> dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
if (dir->dir_exists(p_path) && !dir->is_bundle(p_path)) {
open_folder = true;
}
}
if (!p_path.begins_with("file://")) {