Kaydet (Commit) fc5d8d14 authored tarafından Colomban Wendling's avatar Colomban Wendling

Merge pull request #362 from ntrel/fb-cmd

Make File Browser use explorer as default open command on Windows
...@@ -33,6 +33,10 @@ ...@@ -33,6 +33,10 @@
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
# include <windows.h> # include <windows.h>
# define OPEN_CMD "explorer \"%d\""
#else
# define OPEN_CMD "nautilus \"%d\""
#endif #endif
GeanyPlugin *geany_plugin; GeanyPlugin *geany_plugin;
...@@ -987,7 +991,7 @@ static void load_settings(void) ...@@ -987,7 +991,7 @@ static void load_settings(void)
"filebrowser", G_DIR_SEPARATOR_S, "filebrowser.conf", NULL); "filebrowser", G_DIR_SEPARATOR_S, "filebrowser.conf", NULL);
g_key_file_load_from_file(config, config_file, G_KEY_FILE_NONE, NULL); g_key_file_load_from_file(config, config_file, G_KEY_FILE_NONE, NULL);
open_cmd = utils_get_setting_string(config, "filebrowser", "open_command", "nautilus \"%d\""); open_cmd = utils_get_setting_string(config, "filebrowser", "open_command", OPEN_CMD);
/* g_key_file_get_boolean defaults to FALSE */ /* g_key_file_get_boolean defaults to FALSE */
show_hidden_files = g_key_file_get_boolean(config, "filebrowser", "show_hidden_files", NULL); show_hidden_files = g_key_file_get_boolean(config, "filebrowser", "show_hidden_files", NULL);
hide_object_files = utils_get_setting_boolean(config, "filebrowser", "hide_object_files", TRUE); hide_object_files = utils_get_setting_boolean(config, "filebrowser", "hide_object_files", TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment