Wrapper around libconfig that writes and reads files in XDG_CONFIG_HOME.
This repository has been archived on 2020-05-16. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
tastytea 91bbae667c
Added gcc-9 to CI.
2019-08-02 08:38:27 +02:00
src Put everything in the header. 2019-07-21 22:48:15 +02:00
tests Added tests and made compiling the example optional. 2019-07-22 02:37:03 +02:00
.drone.yml Added gcc-9 to CI. 2019-08-02 08:38:27 +02:00
.gitignore Added documentation generation 2018-08-10 02:55:09 +02:00
CMakeLists.txt Added tests and made compiling the example optional. 2019-07-22 02:37:03 +02:00
Doxyfile Added documentation generation 2018-08-10 02:55:09 +02:00
README.md Added install instruction for Gentoo. 2019-07-22 03:10:29 +02:00
generate_doc.sh Added documentation generation 2018-08-10 02:55:09 +02:00

README.md

xdgcfg is a very simple wrapper around libconfig written in C++. It reads and writes files in ${XDG_CONFIG_HOME}. It creates subdirectories if necessary.

Dependencies

Install

Gentoo

Add my repository and install it from there.

eselect repository enable tastytea
echo "dev-cpp/xdgcfg" >> /etc/portage/package.accept_keywords/xdgcfg
emaint sync -r tastytea
emerge -a dev-cpp/xdgcfg

From source

Copy xdgcfg.hpp into a folder where your project can find it.

mkdir build
cd build
cmake ..
make
make install

CMake options

  • -DWITH_TESTS=YES to compile the tests.
  • -DWITH_EXAMPLES=YES to compile the example.

Documentation

xdgcfg.hpp has explanatory comments in it and there is an example. The reference is also available at doc.schlomp.space/xdgcfg/.