mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcursor.git
synced 2025-12-25 10:40:07 +01:00
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:
parent
f64a8cc1a6
commit
2263c196cb
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue