Skip to main content

AutostartOptions

Struct AutostartOptions 

Source
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: bool

macOS LaunchAgent LowPriorityIO: yields the disk during the login storm (Spotlight, Gatekeeper). Ignored elsewhere. Default: off.

§migrate_from_plugin_entry: bool

Remove 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: bool

macOS: report login launch as unsupported and create no LaunchAgent, for an app that handles login items itself. Ignored elsewhere. Default: off.

§macos_backend: MacosBackend

macOS: LaunchAgent plist (default) or SMAppService.mainApp. Ignored elsewhere.

Trait Implementations§

Source§

impl Clone for AutostartOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AutostartOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AutostartOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for AutostartOptions

Source§

impl PartialEq for AutostartOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AutostartOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UserEvent for T
where T: Debug + Clone + Send + 'static,