aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-09-27 13:02:18 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-09-27 13:02:18 +0000
commit7c4fa48ab61286d7edd74d700dc945618ec03a27 (patch)
tree952fa6e5081bed4054a4524c178a8f148073e98d
parentE (randr): We can actually optimize the searches a bit (given that the (diff)
downloadenlightenment-7c4fa48ab61286d7edd74d700dc945618ec03a27.tar.gz
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
-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);
}