From b53e408a2eb01abd23f586d11d9c07e7dbcf36fb Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Wed, 15 Feb 2023 14:57:47 +0100 Subject: [PATCH] Update lib.rs --- plugins/autostart/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/autostart/src/lib.rs b/plugins/autostart/src/lib.rs index ea7664b4..91dcfa27 100644 --- a/plugins/autostart/src/lib.rs +++ b/plugins/autostart/src/lib.rs @@ -115,13 +115,13 @@ pub fn init( // but this results in seeing a Unix Executable in macOS login items // It must be: /Applications/Example.app // If it didn't find exactly a single occurance of .app, it will default to - // exe path to not break it.ß + // 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 { format!( "{}{}", - parts.get(0).expect("to be an app").to_string(), + parts.get(0).unwrap().to_string(), ".app" ) } else {