Return dedicated error message if dbus session could not be opened #22

Merged
6543 merged 2 commits from error-with-meaninfgull-msg into dev 2024-08-21 21:23:27 -04:00

View File

@@ -119,7 +119,9 @@ 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