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
devs/princeamd/enlightenment-0.17-elive
Sebastian Dransfeld 11 years ago
parent 50f569ff5e
commit 7c4fa48ab6
  1. 12
      src/bin/e_xsettings.c

@ -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);
}

Loading…
Cancel
Save