elementary: correct the homepath on windows from vtorri
authoryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 6 Apr 2011 13:57:42 +0000 (13:57 +0000)
committeryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 6 Apr 2011 13:57:42 +0000 (13:57 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58390 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_config.c

index dd93832..eb787b9 100644 (file)
@@ -672,7 +672,11 @@ _elm_user_dir_snprintf(char       *dst,
    size_t user_dir_len, off;
    va_list ap;
 
+#ifdef _WIN32
+   home = evil_homedir_get();
+#else
    home = getenv("HOME");
+#endif
    if (!home)
      home = "/";