From c029d90d1975e124d237605f1edb2be16bd05b5d Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 28 Feb 2017 21:50:44 +0100 Subject: Initial commit --- src/xdg.hh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/xdg.hh (limited to 'src/xdg.hh') 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 +#include + +class XDG { +public: + static std::string config_home(); + // Returned list is sorted in order of importance, directories may not exist + static std::vector config_dirs(); + static std::string data_home(); + // Returned list is sorted in order of importance, directories may not exist + static std::vector data_dirs(); + static std::string cache_home(); + static std::string home(); + +private: + XDG() {} + ~XDG() {} +}; + +#endif // XDG_HH -- cgit v1.2.3-70-g09d2