DesktopAppInfo#

Deprecated since version PyGObject-3.16.0: Gio.DesktopAppInfo is deprecated; use GioUnix.DesktopAppInfo instead

class DesktopAppInfo(**properties: Any)#
Constructors:

DesktopAppInfo(**properties)
new(desktop_id:str) -> GioUnix.DesktopAppInfo or None
new_from_filename(filename:str) -> GioUnix.DesktopAppInfo or None
new_from_keyfile(key_file:GLib.KeyFile) -> GioUnix.DesktopAppInfo or None

Constructors#

class DesktopAppInfo
classmethod new(desktop_id: str) → DesktopAppInfo | None#
Parameters:

desktop_id

classmethod new_from_filename(filename: str) → DesktopAppInfo | None#
Parameters:

filename

classmethod new_from_keyfile(key_file: KeyFile) → DesktopAppInfo | None#
Parameters:

key_file

Methods#

class DesktopAppInfo
get_action_name(action_name: str) → str#
Parameters:

action_name

get_boolean(key: str) → bool#
Parameters:

key

get_categories() → str | None#
get_filename() → str | None#
get_generic_name() → str | None#
classmethod get_implementations(interface: str) → list[DesktopAppInfo]#
Parameters:

interface

get_is_hidden() → bool#
get_keywords() → list[str] | None#
get_locale_string(key: str) → str | None#
Parameters:

key

get_nodisplay() → bool#
get_show_in(desktop_env: str | None = None) → bool#
Parameters:

desktop_env

get_startup_wm_class() → str | None#
get_string(key: str) → str | None#
Parameters:

key

get_string_list(key: str) → list[str] | None#
Parameters:

key

has_key(key: str) → bool#
Parameters:

key

launch_action(action_name: str, launch_context: AppLaunchContext | None = None) → None#
Parameters:
  • action_name

  • launch_context

launch_uris_as_manager(uris: list[str], launch_context: AppLaunchContext | None, spawn_flags: SpawnFlags, user_setup: Callable[[Any], None] | None = None, user_setup_data: Any = None, pid_callback: Callable[[DesktopAppInfo, int, Any], None] | None = None, pid_callback_data: Any = None) → bool#
Parameters:
  • uris

  • launch_context

  • spawn_flags

  • user_setup

  • user_setup_data

  • pid_callback

  • pid_callback_data

launch_uris_as_manager_with_fds(uris: list[str], launch_context: AppLaunchContext | None, spawn_flags: SpawnFlags, user_setup: Callable[[Any], None] | None, user_setup_data: Any, pid_callback: Callable[[DesktopAppInfo, int, Any], None] | None, pid_callback_data: Any, stdin_fd: int, stdout_fd: int, stderr_fd: int) → bool#
Parameters:
  • uris

  • launch_context

  • spawn_flags

  • user_setup

  • user_setup_data

  • pid_callback

  • pid_callback_data

  • stdin_fd

  • stdout_fd

  • stderr_fd

list_actions() → list[str]#
classmethod search(search_string: str) → list[list[str]]#
Parameters:

search_string

classmethod set_desktop_env(desktop_env: str) → None#
Parameters:

desktop_env

Properties#

class DesktopAppInfo
props.filename: str#