aboutsummaryrefslogtreecommitdiff
path: root/src/wandac.cpp
blob: 6b218c4d50c89828e9295394a332d5e601432521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "commander.hpp"
#include "environment.hpp"
#include "xdg.hpp"

#include <asio.hpp>

#include <filesystem>
#include <iostream>
#include <memory>

int main()
{
    auto environment = wanda::environment{};
    auto interface = wanda::xdg_path_for(wanda::xdg_directory::runtime_dir, environment) / ".wanda_interface";
    auto service = asio::io_service{};

    std::clog << "[wandac::main] Initializing commander for socket '" << interface.native() << "'\n";
    auto commander = wanda::commander{service, interface};

    commander.start();

    service.run();
}