|
@@ -2995,10 +2995,10 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|
case RUN_USER_DATA_FOLDER: {
|
|
case RUN_USER_DATA_FOLDER: {
|
|
// Ensure_user_data_dir() to prevent the edge case: "Open User Data Folder" won't work after the project was renamed in ProjectSettingsEditor unless the project is saved.
|
|
// Ensure_user_data_dir() to prevent the edge case: "Open User Data Folder" won't work after the project was renamed in ProjectSettingsEditor unless the project is saved.
|
|
OS::get_singleton()->ensure_user_data_dir();
|
|
OS::get_singleton()->ensure_user_data_dir();
|
|
- OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir());
|
|
|
|
|
|
+ OS::get_singleton()->shell_show_in_file_manager(OS::get_singleton()->get_user_data_dir(), true);
|
|
} break;
|
|
} break;
|
|
case FILE_EXPLORE_ANDROID_BUILD_TEMPLATES: {
|
|
case FILE_EXPLORE_ANDROID_BUILD_TEMPLATES: {
|
|
- OS::get_singleton()->shell_open("file://" + ProjectSettings::get_singleton()->get_resource_path().path_join("android"));
|
|
|
|
|
|
+ OS::get_singleton()->shell_show_in_file_manager(ProjectSettings::get_singleton()->get_resource_path().path_join("android"), true);
|
|
} break;
|
|
} break;
|
|
case FILE_QUIT:
|
|
case FILE_QUIT:
|
|
case RUN_PROJECT_MANAGER:
|
|
case RUN_PROJECT_MANAGER:
|
|
@@ -3070,10 +3070,10 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|
editor_settings_dialog->popup_edit_settings();
|
|
editor_settings_dialog->popup_edit_settings();
|
|
} break;
|
|
} break;
|
|
case SETTINGS_EDITOR_DATA_FOLDER: {
|
|
case SETTINGS_EDITOR_DATA_FOLDER: {
|
|
- OS::get_singleton()->shell_open(String("file://") + EditorPaths::get_singleton()->get_data_dir());
|
|
|
|
|
|
+ OS::get_singleton()->shell_show_in_file_manager(EditorPaths::get_singleton()->get_data_dir(), true);
|
|
} break;
|
|
} break;
|
|
case SETTINGS_EDITOR_CONFIG_FOLDER: {
|
|
case SETTINGS_EDITOR_CONFIG_FOLDER: {
|
|
- OS::get_singleton()->shell_open(String("file://") + EditorPaths::get_singleton()->get_config_dir());
|
|
|
|
|
|
+ OS::get_singleton()->shell_show_in_file_manager(EditorPaths::get_singleton()->get_config_dir(), true);
|
|
} break;
|
|
} break;
|
|
case SETTINGS_MANAGE_EXPORT_TEMPLATES: {
|
|
case SETTINGS_MANAGE_EXPORT_TEMPLATES: {
|
|
export_template_manager->popup_manager();
|
|
export_template_manager->popup_manager();
|
|
@@ -3176,7 +3176,7 @@ void EditorNode::_screenshot(bool p_use_utc) {
|
|
NodePath path = String("user://") + name;
|
|
NodePath path = String("user://") + name;
|
|
_save_screenshot(path);
|
|
_save_screenshot(path);
|
|
if (EDITOR_GET("interface/editor/automatically_open_screenshots")) {
|
|
if (EDITOR_GET("interface/editor/automatically_open_screenshots")) {
|
|
- OS::get_singleton()->shell_open(String("file://") + ProjectSettings::get_singleton()->globalize_path(path));
|
|
|
|
|
|
+ OS::get_singleton()->shell_show_in_file_manager(ProjectSettings::get_singleton()->globalize_path(path), true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|