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.
This commit is contained in:
Cosimo Cecchi 2018-11-09 20:06:41 -08:00
parent f64a8cc1a6
commit 2263c196cb
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ AC_ARG_WITH(icondir,
[ICONDIR=${datadir}/icons])
AC_SUBST([ICONDIR])
DEF_CURSORPATH="~/.icons:${datadir}/icons:${datadir}/pixmaps"
DEF_CURSORPATH="~/.local/share/icons:~/.icons:${datadir}/icons:${datadir}/pixmaps"
if test "x${ICONDIR}" != "x${datadir}/icons"; then
DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}"
fi

View file

@ -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 *