[][src]Trait gio::prelude::DesktopAppInfoExt

pub trait DesktopAppInfoExt: 'static {
    fn get_action_name(&self, action_name: &str) -> Option<GString>;
fn get_boolean(&self, key: &str) -> bool;
fn get_categories(&self) -> Option<GString>;
fn get_filename(&self) -> Option<PathBuf>;
fn get_generic_name(&self) -> Option<GString>;
fn get_is_hidden(&self) -> bool;
fn get_keywords(&self) -> Vec<GString>;
fn get_locale_string(&self, key: &str) -> Option<GString>;
fn get_nodisplay(&self) -> bool;
fn get_show_in(&self, desktop_env: Option<&str>) -> bool;
fn get_startup_wm_class(&self) -> Option<GString>;
fn get_string(&self, key: &str) -> Option<GString>;
fn get_string_list(&self, key: &str) -> Vec<GString>;
fn has_key(&self, key: &str) -> bool;
fn launch_action<P: IsA<AppLaunchContext>>(
        &self,
        action_name: &str,
        launch_context: Option<&P>
    );
fn launch_uris_as_manager<P: IsA<AppLaunchContext>>(
        &self,
        uris: &[&str],
        launch_context: Option<&P>,
        spawn_flags: SpawnFlags,
        user_setup: Option<Box_<dyn FnOnce() + 'static>>,
        pid_callback: Option<&mut dyn FnMut(&DesktopAppInfo, Pid)>
    ) -> Result<(), Error>;
fn list_actions(&self) -> Vec<GString>; }

Required methods

fn get_action_name(&self, action_name: &str) -> Option<GString>

fn get_boolean(&self, key: &str) -> bool

fn get_categories(&self) -> Option<GString>

fn get_filename(&self) -> Option<PathBuf>

fn get_generic_name(&self) -> Option<GString>

fn get_is_hidden(&self) -> bool

fn get_keywords(&self) -> Vec<GString>

fn get_locale_string(&self, key: &str) -> Option<GString>

fn get_nodisplay(&self) -> bool

fn get_show_in(&self, desktop_env: Option<&str>) -> bool

fn get_startup_wm_class(&self) -> Option<GString>

fn get_string(&self, key: &str) -> Option<GString>

fn get_string_list(&self, key: &str) -> Vec<GString>

fn has_key(&self, key: &str) -> bool

fn launch_action<P: IsA<AppLaunchContext>>(
    &self,
    action_name: &str,
    launch_context: Option<&P>
)

fn launch_uris_as_manager<P: IsA<AppLaunchContext>>(
    &self,
    uris: &[&str],
    launch_context: Option<&P>,
    spawn_flags: SpawnFlags,
    user_setup: Option<Box_<dyn FnOnce() + 'static>>,
    pid_callback: Option<&mut dyn FnMut(&DesktopAppInfo, Pid)>
) -> Result<(), Error>

fn list_actions(&self) -> Vec<GString>

Loading content...

Implementors

impl<O: IsA<DesktopAppInfo>> DesktopAppInfoExt for O[src]

Loading content...