diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-02-28 21:50:44 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-02-28 21:50:44 +0100 |
| commit | c029d90d1975e124d237605f1edb2be16bd05b5d (patch) | |
| tree | 9df87ffb365354bdb74a969440b32c8304bdbcb7 /src/xdg.hh | |
Initial commit
Diffstat (limited to 'src/xdg.hh')
| -rw-r--r-- | src/xdg.hh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/xdg.hh b/src/xdg.hh new file mode 100644 index 0000000..99d1c24 --- /dev/null +++ b/src/xdg.hh @@ -0,0 +1,25 @@ +// -*- mode: c++; c-basic-offset: 2; -*- + +#ifndef XDG_HH +#define XDG_HH + +#include <string> +#include <vector> + +class XDG { +public: + static std::string config_home(); + // Returned list is sorted in order of importance, directories may not exist + static std::vector<std::string> config_dirs(); + static std::string data_home(); + // Returned list is sorted in order of importance, directories may not exist + static std::vector<std::string> data_dirs(); + static std::string cache_home(); + static std::string home(); + +private: + XDG() {} + ~XDG() {} +}; + +#endif // XDG_HH |
