(svn r25975) -Feature [FS#5385]: XDG base directory support

This commit is contained in:
rubidium
2013-11-13 19:32:37 +00:00
parent c4ab18c029
commit a77aa68f16
6 changed files with 122 additions and 17 deletions

View File

@@ -43,6 +43,9 @@ enum Subdirectory {
enum Searchpath {
SP_FIRST_DIR,
SP_WORKING_DIR = SP_FIRST_DIR, ///< Search in the working directory
#if defined(WITH_XDG_BASEDIR) && defined(WITH_PERSONAL_DIR)
SP_PERSONAL_DIR_XDG, ///< Search in the personal directory from the XDG specification
#endif
SP_PERSONAL_DIR, ///< Search in the personal directory
SP_SHARED_DIR, ///< Search in the shared directory, like 'Shared Files' under Windows
SP_BINARY_DIR, ///< Search in the directory where the binary resides