diff --git a/.changes/autostart-builder.md b/.changes/autostart-builder.md index 98ad8056..fe7f2911 100644 --- a/.changes/autostart-builder.md +++ b/.changes/autostart-builder.md @@ -3,4 +3,4 @@ autostart: minor autostart-js: minor --- -Introduce a `Builder` for more flexible settings and also for the preparation of newer version of auto launch which introduced a new option to change the registry entry to enable auto start in +Introduce a `Builder` for more flexible settings and also for the preparation of newer version of auto launch which introduced a new option to change the registry entry it uses to enable auto start diff --git a/plugins/autostart/src/lib.rs b/plugins/autostart/src/lib.rs index 07ed5119..83cac89c 100644 --- a/plugins/autostart/src/lib.rs +++ b/plugins/autostart/src/lib.rs @@ -181,7 +181,7 @@ impl Builder { let exe_path = current_exe.canonicalize()?.display().to_string(); let parts: Vec<&str> = exe_path.split(".app/").collect(); let app_path = if parts.len() == 2 - && matches!(macos_launcher, MacosLauncher::AppleScript) + && matches!(self.macos_launcher, MacosLauncher::AppleScript) { format!("{}.app", parts.first().unwrap()) } else {