Efreet: Fix config and data dir paths on windows.
authorVincent Torri <vincent.torri@gmail.com>
Wed, 8 Jul 2015 15:28:30 +0000 (16:28 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 8 Jul 2015 15:29:05 +0000 (16:29 +0100)
@fix

src/lib/efreet/efreet_base.c

index e5ea7de..689aed1 100644 (file)
@@ -302,14 +302,18 @@ efreet_dirs_init(void)
 
     /* xdg_data_dirs */
 #ifdef _WIN32
-    snprintf(buf, sizeof(buf), "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA"));
+    snprintf(buf, sizeof(buf), "%s\\Efl;" DATA_DIR ";", getenv("APPDATA"));
     xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf);
 #else
     xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS",
                                     DATA_DIR ":/usr/share:/usr/local/share");
 #endif
     /* xdg_config_dirs */
+#ifdef _WIN32
+    xdg_config_dirs = efreet_dirs_get("XDG_CONFIG_DIRS", getenv("APPDATA"));
+#else
     xdg_config_dirs = efreet_dirs_get("XDG_CONFIG_DIRS", "/etc/xdg");
+#endif
 
     /* xdg_runtime_dir */
 #if defined(HAVE_GETUID) && defined(HAVE_GETEUID)