Create a xdg_path function

This commit is contained in:
Florent Le Coz
2015-09-18 09:20:15 +02:00
parent 73573ebb2a
commit ea0b2f2bb8
5 changed files with 59 additions and 15 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef XDG_HPP_INCLUDED
#define XDG_HPP_INCLUDED
#include <string>
/**
* Returns a path for the given filename, according to the XDG base
* directory specification, see
* http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
*/
std::string xdg_config_path(const std::string& filename);
#endif /* XDG_HPP_INCLUDED */