Struct leftwm_core::utils::child_process::Nanny
source · [−]pub struct Nanny {}
Implementations
sourceimpl Nanny
impl Nanny
sourcepub fn autostart() -> Children
pub fn autostart() -> Children
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:
- An application
.desktop
file must have the format as defined in the Desktop Entry Specification - 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:
- the
.desktop
file has theHidden
key set to true. - string identifying the desktop environments not in
OnlyShowIn
- 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).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Nanny
impl Send for Nanny
impl Sync for Nanny
impl Unpin for Nanny
impl UnwindSafe for Nanny
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more