Code

conf.c: Add windows default user key binding config check
authorAvuton Olrich <avuton@gmail.com>
Fri, 10 Feb 2012 03:19:07 +0000 (19:19 -0800)
committerAvuton Olrich <avuton@gmail.com>
Fri, 10 Feb 2012 03:20:55 +0000 (19:20 -0800)
src/conf.c

index f8ccfaccde88fa7f07b7ef49ba085f4b35b17970..1aaa1666d2b1eae73d30e1c8eed4b1a6efd143cd 100644 (file)
@@ -641,7 +641,11 @@ build_system_conf_filename(void)
 char *
 build_user_key_binding_filename(void)
 {
+#ifdef WIN32
+       return g_build_filename(g_get_user_config_dir(), PACKAGE, "keys.conf", NULL);
+#else
        return g_build_filename(g_get_home_dir(), "." PACKAGE, "keys", NULL);
+#endif
 }
 
 void