Skip to content

Commit b376876

Browse files
committed
loader: Provide default definitions for XDG dirs
1 parent acf64da commit b376876

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/loader/manifest_file.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
#include <utility>
5050
#include <vector>
5151

52+
#ifndef FALLBACK_CONFIG_DIRS
53+
#define FALLBACK_CONFIG_DIRS "/etc/xdg"
54+
#endif // !FALLBACK_CONFIG_DIRS
55+
56+
#ifndef FALLBACK_DATA_DIRS
57+
#define FALLBACK_DATA_DIRS "/usr/local/share:/usr/share"
58+
#endif // !FALLBACK_DATA_DIRS
59+
60+
#ifndef SYSCONFDIR
61+
#define SYSCONFDIR "/etc"
62+
#endif // !SYSCONFDIR
63+
5264
#ifdef XRLOADER_DISABLE_EXCEPTION_HANDLING
5365
#if JSON_USE_EXCEPTIONS
5466
#error \

0 commit comments

Comments
 (0)