blob: fb2e0bfc81d8531912e707ff752b2a76f6a8fd85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "setting.hpp"
#include "optional.hpp"
#include <iostream>
#include <string>
int main() {
using namespace wanda::literals;
using namespace wanda::std_ext;
with("org.gnome.desktop.background"_setting, [](auto & setting){
with(setting.template get<std::string>("picture-uri"_key), [](auto & value){
std::cout << value << '\n';
}) || []{ std::cerr << "No such key!\n"; };
}) || []{ std::cerr << "No such setting!\n"; };
}
|