e: fix missing xcursor in e17

I discovered that at least for 1 week xcursor is not shown if it was
installed in system directory (/usr/share/icons), so i guess i will fix
a fix.

Fixes #1556

Patch by Sergei Kabanov

SVN revision: 77153
This commit is contained in:
Sebastian Dransfeld 2012-09-27 13:02:18 +00:00
parent 50f569ff5e
commit 7c4fa48ab6
1 changed files with 9 additions and 3 deletions

View File

@ -535,11 +535,17 @@ _e_xsettings_cursor_path_set(void)
path = getenv("XCURSOR_PATH");
if (path)
{
snprintf(env, sizeof(env), "%s:%s", buf, path);
path = env;
if (!strstr(path, buf))
{
snprintf(env, sizeof(env), "%s:%s", buf, path);
path = env;
}
}
else
path = buf;
{
snprintf(env, sizeof(env), "%s:%s", buf, "/usr/share/icons");
path = env;
}
e_env_set("XCURSOR_PATH", path);
}