efreet: fix for windows

there is probebly not geteuid / getuid
This commit is contained in:
Marcel Hollerbach 2018-02-26 10:41:48 +01:00
parent e25bd086c5
commit 530b7e1453
1 changed files with 4 additions and 0 deletions

View File

@ -98,7 +98,11 @@ _efreet_efreet_app_interface_set(void)
// $HOME/.cache should be used.
ENV_HOME_SET("XDG_CACHE_HOME", ".cache", cache);
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
if ((getuid() != geteuid()) || (!(s = getenv("XDG_RUNTIME_DIR"))))
#else
if (!(s = getenv("XDG_RUNTIME_DIR")))
#endif
user.run = NULL;
else
user.run = s;