aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bin/e_xsettings.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c
index 0b77a5623..e663dd85c 100644
--- a/src/bin/e_xsettings.c
+++ b/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);
}