do not set XCURSOR_PATH variable if re-setting existing value
This commit is contained in:
parent
a04a93e5ef
commit
51365e879e
|
@ -565,11 +565,9 @@ _e_xsettings_cursor_path_set(void)
|
|||
path = getenv("XCURSOR_PATH");
|
||||
if (path)
|
||||
{
|
||||
if (!strstr(path, buf))
|
||||
{
|
||||
snprintf(env, sizeof(env), "%s:%s", buf, path);
|
||||
path = env;
|
||||
}
|
||||
if (strstr(path, buf)) return;
|
||||
snprintf(env, sizeof(env), "%s:%s", buf, path);
|
||||
path = env;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue