Skip to content

cursor: support XDG Base Directory Specification

The user may install cursor themes manually, and the desktop environment may provide a special directory for storing them. The XDG Base Directory Specification suggests that XDG_DATA_HOME environment variable should be used as base path, and inside it, the icons subdirectory should be used as the place where cursor themes are stored. If XDG_DATA_HOME is not set, the fallback value should be used, which is $HOME/.local/share.

However, users of libwayland-cursor cannot load these themes using the API provided by the library because the latter does not look into those directories.

This patch adds support the XDG Base Directory Specification, so user-specific themes can be loaded through the API provided by libwayland-cursor.

Signed-off-by: Alexander Dunaev adunaev@igalia.com
Reviewed-by: Emmanuel Gil Peyrot linkmauve@linkmauve.fr
Reviewed-by: Simon Ser contact@emersion.fr

Edited by Alex

Merge request reports