do not set XCURSOR_PATH variable if re-setting existing value

This commit is contained in:
Mike Blumenkrantz 2016-02-29 08:12:40 -05:00
parent a04a93e5ef
commit 51365e879e
1 changed files with 3 additions and 5 deletions

View File

@ -565,11 +565,9 @@ _e_xsettings_cursor_path_set(void)
path = getenv("XCURSOR_PATH"); path = getenv("XCURSOR_PATH");
if (path) if (path)
{ {
if (!strstr(path, buf)) if (strstr(path, buf)) return;
{ snprintf(env, sizeof(env), "%s:%s", buf, path);
snprintf(env, sizeof(env), "%s:%s", buf, path); path = env;
path = env;
}
} }
else else
{ {