Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fix auto launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Aug 26, 2022
1 parent 5e82162 commit 7a9d540
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/src/auto_launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ pub fn auto_launch() {
let exe = env::current_exe().unwrap();
let exe_string = exe.to_str().unwrap();

let app_name = "Authme v4";
let app_path = exe_string;
let args = &["--minimized"];
let auto = AutoLaunch::new(app_name, app_path, args);
let auto = AutoLaunchBuilder::new()
.set_app_name("Authme v4")
.set_app_path(exe_string)
.set_use_launch_agent(false)
.set_args(&["--minimized"])
.build()
.unwrap();

let enabled = auto.is_enabled().unwrap();

Expand Down

0 comments on commit 7a9d540

Please sign in to comment.