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