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>,
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>,
&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>,
P: AsRef<OsStr>,
Q: AsRef<OsStr>,
pub fn unsetenv<P>(&self, variable: P) where
P: AsRef<OsStr>,
P: AsRef<OsStr>,
pub fn connect_launch_failed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &str),
F: 'static + Fn(&Self, &str),
pub fn connect_launched<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &AppInfo, &Variant),
F: 'static + Fn(&Self, &AppInfo, &Variant),
Implementors
impl<O> AppLaunchContextExt for O where
O: IsA<AppLaunchContext>,
O: IsA<AppLaunchContext>,
pub fn get_display<P>(&self, info: &P, files: &[File]) -> Option<GString> where
P: IsA<AppInfo>,
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>,
&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>,
P: AsRef<OsStr>,
Q: AsRef<OsStr>,
pub fn unsetenv<P>(&self, variable: P) where
P: AsRef<OsStr>,
P: AsRef<OsStr>,
pub fn connect_launch_failed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &str),
F: 'static + Fn(&O, &str),
pub fn connect_launched<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &AppInfo, &Variant),
F: 'static + Fn(&O, &AppInfo, &Variant),