diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 10:48:44 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 10:48:44 +0100 |
| commit | 5b2974cd16b5d2841b72c7d0cc4a34469a8ded5b (patch) | |
| tree | 27fe6f0b428a1e02f7fe7c677795bdd989e0498c /src/wandad.cpp | |
| parent | 543e91dc65d839864b42114b353d0c30db4dcdd1 (diff) | |
| download | wanda-5b2974cd16b5d2841b72c7d0cc4a34469a8ded5b.tar.xz wanda-5b2974cd16b5d2841b72c7d0cc4a34469a8ded5b.zip | |
core: implement basic XDG Base Specification support
Diffstat (limited to 'src/wandad.cpp')
| -rw-r--r-- | src/wandad.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wandad.cpp b/src/wandad.cpp index 169efd9..04f3394 100644 --- a/src/wandad.cpp +++ b/src/wandad.cpp @@ -1,8 +1,10 @@ #include "control_interface.hpp" +#include "environment.hpp" #include "filesystem.hpp" #include "optional.hpp" #include "setting.hpp" #include "wallpaper.hpp" +#include "xdg.hpp" #include <boost/asio.hpp> @@ -39,7 +41,10 @@ int main() wanda::set_wallpaper(wallpaper); auto service = boost::asio::io_service{}; - auto interface = wanda::make_interface(service, ".wanda_interface"); + auto socket_path = wanda::xdg_path_for(wanda::xdg_directory::runtime_dir, wanda::environment{}) / ".wanda_interface"; + + std::clog << "[wandad::main] Initializing control interface on socket '" << socket_path.native() << "'\n"; + auto interface = wanda::make_interface(service, socket_path); auto status = interface->start(); if (status) |
