pub struct Launch {
pub arguments: Vec<OsString>,
pub current_dir: PathBuf,
pub activation_token: Option<String>,
}Expand description
A later launch: its arguments, without the program’s name, as the strings the system gave it, and the folder it was started in, which relative paths are in. A launch with no arguments asks the app to show itself again.
Fields§
§arguments: Vec<OsString>§current_dir: PathBuf§activation_token: Option<String>On Linux, the XDG activation token the desktop gave the launch (XDG_ACTIVATION_TOKEN,
or X11’s DESKTOP_STARTUP_ID), with which the window the app shows for it may take the
focus: LinuxWindowConfig::activation_token for a window it opens, Linux::activate for
one already open. A desktop gives one only to a launch from a desktop entry with
StartupNotify=true. None elsewhere: on Windows the launch hands the first instance its
right to the foreground itself.
Trait Implementations§
impl Eq for Launch
impl StructuralPartialEq for Launch
Auto Trait Implementations§
impl Forget for Launch
impl Freeze for Launch
impl Move for Launch
impl RefUnwindSafe for Launch
impl Send for Launch
impl Sync for Launch
impl Unpin for Launch
impl UnsafeUnpin for Launch
impl UnwindSafe for Launch
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
Mutably borrows from an owned value. Read more