pub struct AutostartOptions {
pub args: Vec<String>,
pub low_priority_io: bool,
pub migrate_from_plugin_entry: bool,
pub startup_wm_class: Option<String>,
pub config_home: Option<PathBuf>,
pub macos_unsupported: bool,
pub macos_backend: MacosBackend,
}Expand description
How the login entry launches the app.
Fields§
§args: Vec<String>Arguments the login launch receives. Default: ["--background"].
low_priority_io: boolmacOS LaunchAgent LowPriorityIO: yields the disk during the login storm (Spotlight,
Gatekeeper). Ignored elsewhere. Default: off.
migrate_from_plugin_entry: boolRemove the entry tauri-plugin-autostart wrote, whenever this shell enables or disables login
launch, so an upgraded user never has two login items. Default: off.
startup_wm_class: Option<String>Linux: written as StartupWMClass in the desktop entry so the shell matches the app’s window
class. None (the default) writes no such key. A value with control characters is ignored.
config_home: Option<PathBuf>Where the per-user config lives, instead of the environment (RIGHTKIT_SHELL_HOME,
XDG_CONFIG_HOME, HOME). Linux: the XDG config directory, so the entry is
<config_home>/autostart/<id>.desktop. macOS: the home directory, so the entry is
<config_home>/Library/LaunchAgents/<id>.autostart.plist. For tests and sandboxes; None
(the default) keeps the environment lookup. Ignored on Windows.
macos_unsupported: boolmacOS: report login launch as unsupported and create no LaunchAgent, for an app that handles login items itself. Ignored elsewhere. Default: off.
macos_backend: MacosBackendmacOS: LaunchAgent plist (default) or SMAppService.mainApp. Ignored elsewhere.
Trait Implementations§
Source§impl Clone for AutostartOptions
impl Clone for AutostartOptions
Source§impl Debug for AutostartOptions
impl Debug for AutostartOptions
Source§impl Default for AutostartOptions
impl Default for AutostartOptions
impl Eq for AutostartOptions
Source§impl PartialEq for AutostartOptions
impl PartialEq for AutostartOptions
impl StructuralPartialEq for AutostartOptions
Auto Trait Implementations§
impl Freeze for AutostartOptions
impl RefUnwindSafe for AutostartOptions
impl Send for AutostartOptions
impl Sync for AutostartOptions
impl Unpin for AutostartOptions
impl UnsafeUnpin for AutostartOptions
impl UnwindSafe for AutostartOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.