Skip to content

Commit

Permalink
Merge pull request #362 from ntrel/fb-cmd
Browse files Browse the repository at this point in the history
Make File Browser use explorer as default open command on Windows
  • Loading branch information
b4n committed Oct 27, 2014
2 parents a7a893a + 36c155c commit fc5d8d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/filebrowser.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fc5d8d1

Please sign in to comment.