Return dedicated error message if dbus session could not be opened

This commit is contained in:
6543
2024-08-22 03:17:24 +02:00
parent 499aa2be28
commit f89f257d60

View File

@@ -119,7 +119,7 @@ async fn main() {
error!("Unable to get Stardust project directories, default skybox and startup script will not work.");
}
let dbus_connection = Connection::session().await.unwrap();
let dbus_connection = Connection::session().await.expect("Could not open dbus session");
dbus_connection
.request_name("org.stardustxr.HMD")
.await