summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c790857)
raw | patch | inline | side by side (parent: c790857)
author | Avuton Olrich <avuton@gmail.com> | |
Fri, 10 Feb 2012 03:25:42 +0000 (19:25 -0800) | ||
committer | Avuton Olrich <avuton@gmail.com> | |
Fri, 10 Feb 2012 03:25:42 +0000 (19:25 -0800) |
src/conf.c | patch | blob | history |
diff --git a/src/conf.c b/src/conf.c
index 9ac3a5623d8d5d22acc4f5da3da883d6137111a9..50feefee6e2807f3b5c5e9331e8291b6ad0eba3b 100644 (file)
--- a/src/conf.c
+++ b/src/conf.c
static char *
g_build_system_key_binding_filename(void)
{
+#ifdef WIN32
+ const gchar* const *system_data_dirs;
+ gchar *pathname = NULL;
+
+ for (system_data_dirs = g_get_system_config_dirs (); *system_data_dirs != NULL; system_data_dirs++)
+ {
+ g_message (*system_data_dirs);
+ pathname = g_build_filename(*system_data_dirs, PACKAGE, "keys.conf", NULL);
+ if (g_file_test(pathname, G_FILE_TEST_EXISTS))
+ {
+ break;
+ }
+ else
+ {
+ g_free (pathname);
+ pathname = NULL;
+ }
+ }
+ return pathname;
+#else
return g_build_filename(SYSCONFDIR, PACKAGE, "keys", NULL);
+#endif
}
void