| 18 | { |
| 19 | |
| 20 | DBusConnection* getConnection() |
| 21 | { |
| 22 | static DBusConnection* sConn = [] |
| 23 | { |
| 24 | DBusError err; |
| 25 | dbus_error_init( &err ); |
| 26 | MR_FINALLY { dbus_error_free( &err ); }; |
| 27 | |
| 28 | auto* conn = dbus_bus_get( DBUS_BUS_SESSION, &err ); |
| 29 | if ( dbus_error_is_set( &err ) ) |
| 30 | spdlog::warn( "Failed to connect to DBus: {}", err.message ); |
| 31 | |
| 32 | return conn; |
| 33 | } (); |
| 34 | return sConn; |
| 35 | } |
| 36 | |
| 37 | std::string getWindowId( GLFWwindow* window ) |
| 38 | { |
no outgoing calls
no test coverage detected