forked from enlightenment/efl
Elm_Config: remove Evil functions as home is anyway set on Windows
This commit is contained in:
parent
64ecef597d
commit
e62ded189d
|
@ -2,10 +2,6 @@
|
||||||
# include "elementary_config.h"
|
# include "elementary_config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_EVIL
|
|
||||||
# include <Evil.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Elementary.h>
|
#include <Elementary.h>
|
||||||
#include "elm_priv.h"
|
#include "elm_priv.h"
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
@ -546,12 +542,6 @@ _elm_config_user_dir_snprintf(char *dst,
|
||||||
size_t user_dir_len = 0, off = 0;
|
size_t user_dir_len = 0, off = 0;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
home = evil_homedir_get();
|
|
||||||
user_dir_len = eina_str_join_len
|
|
||||||
(dst, size, '/', home, strlen(home),
|
|
||||||
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
|
|
||||||
#else
|
|
||||||
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||||
if (getuid() == geteuid())
|
if (getuid() == geteuid())
|
||||||
#endif
|
#endif
|
||||||
|
@ -598,7 +588,6 @@ _elm_config_user_dir_snprintf(char *dst,
|
||||||
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
|
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
off = user_dir_len + 1;
|
off = user_dir_len + 1;
|
||||||
|
|
Loading…
Reference in New Issue