set_desktop_env


Description:

public static void set_desktop_env (string desktop_env)

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

Note:

do not use this API. Since 2.42 the value of the `XDG_CURRENT_DESKTOP` environment variable will be used.

This is used by should_show and get_show_in to evaluate the `OnlyShowIn` and `NotShowIn` desktop entry fields.

Should be called only once; subsequent calls are ignored.

Parameters:

desktop_env

a string specifying what desktop this is




2022 vala-language.org