pub struct Nanny {}

Implementations

As Desktop Application Autostart Specification describe, some applications placing an application’s .desktop file in one of the Autostart Directories could be automatically launched during startup of the user’s desktop environment after the user has logged in.

The Autostart Directories are $XDG_CONFIG_DIRS/autostart and $XDG_CONFIG_HOME/autostart. $XDG_CONFIG_DIRS and $XDG_CONFIG_HOME can be found in XDG Base Directory Specification.

There are some principles about autostart file:

  1. An application .desktop file must have the format as defined in the Desktop Entry Specification
  2. If two files have the same filename in $XDG_CONFIG_DIRS/autostart and $XDG_CONFIG_HOME/autostart, e.g. foo.desktop, $XDG_CONFIG_DIRS/autostart/foo.desktop will be ignored.

Autostart Entry will be ignored when:

  1. the .desktop file has the Hidden key set to true.
  2. string identifying the desktop environments not in OnlyShowIn
  3. string identifying the desktop environments in NotShowIn

The string identifying the desktop environments means $XDG_CURRENT_DESKTOP, you can find some from Registered OnlyShowIn Environments.
LeftWM use LeftWM as identification (case-sensitive).

Runs the ‘up’ script in the config directory, if there is one.

Errors

Will error if unable to open current config directory. Could be caused by inadequate permissions.

Runs the ‘up’ script of the current theme, if there is one.

Errors

Will error if unable to open current theme directory. Could be caused by inadequate permissions.

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more