Trait ux::prelude::AppLaunchContextExt[]

pub trait AppLaunchContextExt: 'static {
    pub fn get_display<P>(&self, info: &P, files: &[File]) -> Option<GString>
    where
        P: IsA<AppInfo>
;
pub fn get_environment(&self) -> Vec<OsString, Global>;
pub fn get_startup_notify_id<P>(
        &self,
        info: &P,
        files: &[File]
    ) -> Option<GString>
    where
        P: IsA<AppInfo>
;
pub fn launch_failed(&self, startup_notify_id: &str);
pub fn setenv<P, Q>(&self, variable: P, value: Q)
    where
        P: AsRef<OsStr>,
        Q: AsRef<OsStr>
;
pub fn unsetenv<P>(&self, variable: P)
    where
        P: AsRef<OsStr>
;
pub fn connect_launch_failed<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self, &str)
;
pub fn connect_launched<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self, &AppInfo, &Variant)
; }

Required methods

pub fn get_display<P>(&self, info: &P, files: &[File]) -> Option<GString> where
    P: IsA<AppInfo>, 

pub fn get_environment(&self) -> Vec<OsString, Global>

pub fn get_startup_notify_id<P>(
    &self,
    info: &P,
    files: &[File]
) -> Option<GString> where
    P: IsA<AppInfo>, 

pub fn launch_failed(&self, startup_notify_id: &str)

pub fn setenv<P, Q>(&self, variable: P, value: Q) where
    P: AsRef<OsStr>,
    Q: AsRef<OsStr>, 

pub fn unsetenv<P>(&self, variable: P) where
    P: AsRef<OsStr>, 

pub fn connect_launch_failed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self, &str), 

pub fn connect_launched<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self, &AppInfo, &Variant), 

Loading content...

Implementors

impl<O> AppLaunchContextExt for O where
    O: IsA<AppLaunchContext>, 

Loading content...