setDesktopEnv

fun setDesktopEnv(desktopEnv: String)

Sets the name of the desktop that the application is running in.

This is used by method@Gio.AppInfo.should_show and method@Gio.DesktopAppInfo.get_show_in to evaluate the OnlyShowIn and NotShowIn keys.

Should be called only once; subsequent calls are ignored.

Parameters

desktopEnv

a string specifying what desktop this is