DesktopAppInfo.setDesktopEnv

void setDesktopEnv(string desktopEnv)

Sets the name of the desktop that the application is running in. This is used by [gio.app_info.AppInfo.shouldShow] and [gio.desktop_app_info.DesktopAppInfo.getShowIn] to evaluate the OnlyShowIn and NotShowIn desktop entry fields.

Should be called only once; subsequent calls are ignored.

Parameters

desktopEnva string specifying what desktop this is

Deprecated

do not use this API. Since 2.42 the value of the

XDG_CURRENT_DESKTOP environment variable will be used.