Merge pull request #362 from ntrel/fb-cmd

Make File Browser use explorer as default open command on Windows
This commit is contained in:
Colomban Wendling 2014-10-27 19:24:09 +01:00
commit fc5d8d145a

View File

@ -33,6 +33,10 @@
#ifdef G_OS_WIN32
# include <windows.h>
# define OPEN_CMD "explorer \"%d\""
#else
# define OPEN_CMD "nautilus \"%d\""
#endif
GeanyPlugin *geany_plugin;
@ -987,7 +991,7 @@ static void load_settings(void)
"filebrowser", G_DIR_SEPARATOR_S, "filebrowser.conf", 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 */
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);