You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we try to enable the auto launch dynamically (system-wide first if we have admin privileges, with a fallback to current user). In some cases it might make sense to configure this behavior though - for instance when the app is installed to the current user only, and you want to avoid the local machine registry.
Copy file name to clipboardExpand all lines: src/lib.rs
+42-2Lines changed: 42 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,12 @@
62
62
//!
63
63
//! ### Windows
64
64
//!
65
-
//! On Windows, it will add a registry entry under `\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run`.
65
+
//! On Windows, it will add a registry entry under either `\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run` (system-wide) or
66
+
//! `\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run` (current user only).
67
+
//!
68
+
//! By default we try to apply the auto launch to the system registry, which requires admin privileges and applies the auto launch to any user in the system.
69
+
//! If there's no permission to do so, we fallback to enabling it to the current user only.
70
+
//! To change this behavior, you can use [`AutoLaunch::set_windows_enable_mode`].
66
71
//!
67
72
//! ```rust
68
73
//! # #[cfg(target_os = "windows")]
@@ -192,6 +197,9 @@ pub struct AutoLaunch {
192
197
/// Whether use Launch Agent for implement or use AppleScript
0 commit comments