Checks if the application info should be shown in menus that list available
applications for a specific name of the desktop, based on the
OnlyShowIn and NotShowIn keys.
desktop_env should typically be given as null, in which case the
XDG_CURRENT_DESKTOP environment variable is consulted. If you want
to override the default mechanism then you may specify desktop_env,
but this is not recommended.
Note that gio.app_info.AppInfo.shouldShow for info will include this check (with
null for desktop_env) as well as additional checks.
Checks if the application info should be shown in menus that list available applications for a specific name of the desktop, based on the OnlyShowIn and NotShowIn keys.
desktop_env should typically be given as null, in which case the XDG_CURRENT_DESKTOP environment variable is consulted. If you want to override the default mechanism then you may specify desktop_env, but this is not recommended.
Note that gio.app_info.AppInfo.shouldShow for info will include this check (with null for desktop_env) as well as additional checks.