[geany/geany] 36c155: Make File Browser use explorer as default open command on Windows

Nick Treleaven git-noreply at xxxxx
Sun Oct 26 15:06:16 UTC 2014


Branch:      refs/heads/master
Author:      Nick Treleaven <nick.treleaven at btinternet.com>
Committer:   Nick Treleaven <nick.treleaven at btinternet.com>
Date:        Sun, 26 Oct 2014 15:06:16 UTC
Commit:      36c155cbe855f4c05425d868fa4194ee165ca362
             https://github.com/geany/geany/commit/36c155cbe855f4c05425d868fa4194ee165ca362

Log Message:
-----------
Make File Browser use explorer as default open command on Windows


Modified Paths:
--------------
    plugins/filebrowser.c

Modified: plugins/filebrowser.c
6 lines changed, 5 insertions(+), 1 deletions(-)
===================================================================
@@ -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);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list