diff options
author | Kevin E Martin <kem@kem.org> | 2005-12-08 17:54:40 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2005-12-08 17:54:40 +0000 |
commit | b8c92a26d01b14cb9d27cd30d261e24833d0c728 (patch) | |
tree | 41df36cc180ee6dd979abfe08b8dc9b2e5da7768 /src | |
parent | af09e8d8edb7d68367399336ca3163df4c713ffa (diff) |
Allow hard-coded paths to be configurable.
Diffstat (limited to 'src')
-rw-r--r-- | src/library.c | 6 |
1 files 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; } |