From b8c92a26d01b14cb9d27cd30d261e24833d0c728 Mon Sep 17 00:00:00 2001 From: Kevin E Martin Date: Thu, 8 Dec 2005 17:54:40 +0000 Subject: Allow hard-coded paths to be configurable. --- src/library.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/library.c b/src/library.c index d7d2eaa..8cbc949 100644 --- a/src/library.c +++ b/src/library.c @@ -30,7 +30,9 @@ #define ICONDIR "/usr/X11R6/lib/X11/icons" #endif -#define CURSORPATH "~/.icons:/usr/share/icons:/usr/share/pixmaps:"ICONDIR +#ifndef XCURSORPATH +#define XCURSORPATH "~/.icons:/usr/share/icons:/usr/share/pixmaps:"ICONDIR +#endif const char * XcursorLibraryPath (void) @@ -41,7 +43,7 @@ XcursorLibraryPath (void) { path = getenv ("XCURSOR_PATH"); if (!path) - path = CURSORPATH; + path = XCURSORPATH; } return path; } -- cgit v1.2.3