Skip to content

Commit

Permalink
fix(autostart): Use full exe path on macos when LaunchAgent is used (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Feb 28, 2024
1 parent 0d3b6b8 commit c3c55d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/autostart/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn init<R: Runtime>(
// exe path to not break it.
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 {
let app_path = if parts.len() == 2 && matches!(macos_launcher, MacosLauncher::AppleScript) {
format!("{}.app", parts.get(0).unwrap().to_string())
} else {
exe_path
Expand Down

0 comments on commit c3c55d5

Please sign in to comment.