:right-sidebar: True AppInfoMonitor =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.40 .. class:: AppInfoMonitor(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: AppInfoMonitor(**properties) Methods ------- .. rst-class:: interim-class .. class:: AppInfoMonitor :no-index: .. method:: get() -> ~gi.repository.Gio.AppInfoMonitor Gets the :obj:`~gi.repository.Gio.AppInfoMonitor` for the current thread-default main context. The :obj:`~gi.repository.Gio.AppInfoMonitor` will emit a "changed" signal in the thread-default main context whenever the list of installed applications (as reported by :func:`~gi.repository.Gio.AppInfo.get_all`) may have changed. The :obj:`~gi.repository.Gio.AppInfoMonitor`::changed signal will only be emitted once until :func:`~gi.repository.Gio.AppInfo.get_all` (or another ```g_app_info_``*()` function) is called. Doing so will re-arm the signal ready to notify about the next change. You must only call :func:`~gi.repository.GObject.GObject.Object.unref` on the return value from under the same main context as you created it. .. versionadded:: 2.40 Signals ------- .. rst-class:: interim-class .. class:: AppInfoMonitor.signals :no-index: .. method:: changed() -> None Signal emitted when the app info database changes, when applications are installed or removed. .. versionadded:: 2.40