aboutsummaryrefslogtreecommitdiff
path: root/src/wandad.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-11-30 10:48:44 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-11-30 10:48:44 +0100
commit5b2974cd16b5d2841b72c7d0cc4a34469a8ded5b (patch)
tree27fe6f0b428a1e02f7fe7c677795bdd989e0498c /src/wandad.cpp
parent543e91dc65d839864b42114b353d0c30db4dcdd1 (diff)
downloadwanda-5b2974cd16b5d2841b72c7d0cc4a34469a8ded5b.tar.xz
wanda-5b2974cd16b5d2841b72c7d0cc4a34469a8ded5b.zip
core: implement basic XDG Base Specification support
Diffstat (limited to 'src/wandad.cpp')
-rw-r--r--src/wandad.cpp7
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)