aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2018-11-27 23:21:07 +0100
committeremersion <contact@emersion.fr>2018-11-27 23:21:07 +0100
commit14f45c056f625baab6b0f7407fa58449dd277a7a (patch)
tree40422ac47bf6fb8d08e91dc10136d7e519ee688f
parente7fba556a8237cb048fa157f5ec068fa20d80a55 (diff)
xcursor: 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. Port of https://cgit.freedesktop.org/xorg/lib/libXcursor/commit/src?id=2263c196cb0dcb8547b378df7b35f83b8b99c01e
-rw-r--r--xcursor/xcursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c
index d9fcac93..5b20fc56 100644
--- a/xcursor/xcursor.c
+++ b/xcursor/xcursor.c
@@ -618,7 +618,7 @@ XcursorFileLoadImages (FILE *file, int size)
#endif
#ifndef XCURSORPATH
-#define XCURSORPATH "~/.icons:/usr/share/icons:/usr/share/pixmaps:~/.cursors:/usr/share/cursors/xorg-x11:"ICONDIR
+#define XCURSORPATH "~/.local/share/icons:~/.icons:/usr/share/icons:/usr/share/pixmaps:"ICONDIR
#endif
static const char *