diff --git a/rust/src/cmd.rs b/rust/src/cmd.rs
index e223e50..4b2ee5d 100644
--- a/rust/src/cmd.rs
+++ b/rust/src/cmd.rs
@@ -158,6 +158,8 @@ pub async fn init_profile(
if let Some(new_profile) = Profile::new(exe_path) {
new_profile.save().await;
appd.profile = Some(new_profile.clone());
+ fs::create_dir_all(new_profile.dir()).await
+ .map_err(|e| format!("Unable to create the profile directory: {}", e))?;
Ok(new_profile)
} else {
diff --git a/rust/src/display.rs b/rust/src/display.rs
index 2572cee..20e8cf0 100644
--- a/rust/src/display.rs
+++ b/rust/src/display.rs
@@ -5,7 +5,7 @@ use anyhow::{Result, anyhow};
pub struct DisplayInfo {
primary: String,
target: String,
- target_rotation: displayz::Orientation
+ target_settings: displayz::DisplaySettings
}
#[cfg(not(target_os = "windows"))]
@@ -15,7 +15,7 @@ pub async fn prepare_display(p: &Profile) -> Result<()> {
#[cfg(target_os = "windows")]
pub async fn prepare_display(p: &Profile) -> Result