summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2018-11-09 20:06:41 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2018-11-09 20:06:41 -0800
commit2263c196cb0dcb8547b378df7b35f83b8b99c01e (patch)
tree1b6f2d0c8674096da543a17439d62e2929cf35f9 /src
parentf64a8cc1a65dcad4294e2988b402a34175019663 (diff)
Support XDG user data dir location
Nowadays ~/.icons is not used anymore as the preferred location for custom user icon themes; XDG_DATA_HOME/icons (aka ~/.local/share/icons) is what toolkits like GTK prefer. Prepend that location to the default xcursor path, so that cursor themes installed there can be used by apps and toolkits that use libXcursor.
Diffstat (limited to 'src')
-rw-r--r--src/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.c b/src/library.c
index c6062f7..364703d 100644
--- a/src/library.c
+++ b/src/library.c
@@ -29,7 +29,7 @@
#endif
#ifndef XCURSORPATH
-#define XCURSORPATH "~/.icons:/usr/share/icons:/usr/share/pixmaps:"ICONDIR
+#define XCURSORPATH "~/.local/share/icons:~/.icons:/usr/share/icons:/usr/share/pixmaps:"ICONDIR
#endif
const char *