e's xsettings now prepends ~/.icons to XCURSOR_PATH if this directory exists to (hopefully) prevent ticket #1103 from resurfacing

SVN revision: 76844
This commit is contained in:
Mike Blumenkrantz 2012-09-19 06:58:50 +00:00
parent ad7cd0677e
commit 295798af41
1 changed files with 21 additions and 0 deletions

View File

@ -523,6 +523,26 @@ _e_xsettings_xft_set(void)
}
#endif
static void
_e_xsettings_cursor_path_set(void)
{
struct stat st;
char buf[PATH_MAX], env[4096], *path;
e_user_homedir_concat_static(buf, ".icons");
if (stat(buf, &st)) return;
path = getenv("XCURSOR_PATH");
if (path)
{
snprintf(env, sizeof(env), "%s:%s", buf, path);
path = env;
}
else
path = buf;
e_env_set("XCURSOR_PATH", path);
}
static void
_e_xsettings_start(void)
{
@ -534,6 +554,7 @@ _e_xsettings_start(void)
_e_xsettings_theme_set();
_e_xsettings_icon_theme_set();
_e_xsettings_font_set();
_e_xsettings_cursor_path_set();
EINA_LIST_FOREACH(e_manager_list(), l, man)
{