summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-07-08 16:28:30 +0100
committerTom Hacohen <tom@stosb.com>2015-07-08 16:29:05 +0100
commitb7a277efa089b8b4479e39a752e19cb1187dbd23 (patch)
tree7a8957f7269ede2bc3fddbe26a2d7841f93ff524 /src/lib/efreet
parente805dcd3703a92f7c7efe3b4c9714736b93e5eee (diff)
Efreet: Fix config and data dir paths on windows.
@fix
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_base.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_base.c b/src/lib/efreet/efreet_base.c
index e5ea7dedd2..689aed1ba9 100644
--- a/src/lib/efreet/efreet_base.c
+++ b/src/lib/efreet/efreet_base.c
@@ -302,14 +302,18 @@ efreet_dirs_init(void)
302 302
303 /* xdg_data_dirs */ 303 /* xdg_data_dirs */
304#ifdef _WIN32 304#ifdef _WIN32
305 snprintf(buf, sizeof(buf), "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA")); 305 snprintf(buf, sizeof(buf), "%s\\Efl;" DATA_DIR ";", getenv("APPDATA"));
306 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf); 306 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf);
307#else 307#else
308 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", 308 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS",
309 DATA_DIR ":/usr/share:/usr/local/share"); 309 DATA_DIR ":/usr/share:/usr/local/share");
310#endif 310#endif
311 /* xdg_config_dirs */ 311 /* xdg_config_dirs */
312#ifdef _WIN32
313 xdg_config_dirs = efreet_dirs_get("XDG_CONFIG_DIRS", getenv("APPDATA"));
314#else
312 xdg_config_dirs = efreet_dirs_get("XDG_CONFIG_DIRS", "/etc/xdg"); 315 xdg_config_dirs = efreet_dirs_get("XDG_CONFIG_DIRS", "/etc/xdg");
316#endif
313 317
314 /* xdg_runtime_dir */ 318 /* xdg_runtime_dir */
315#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 319#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)