set_desktop_file


Description:

public void set_desktop_file (string desktop_file)

Sets the application's .

desktop file. In addition to informing the session manager of the .desktop file so it can present localized names and an icon in session listings and the splash screen, this also calls set_application_name and set_default_icon_name (or set_default_icon_from_file) if the Name and Icon keys are present, respectively.

If a relative path to the file is provided, this function will search the standard application directories as specified by the <ulink type="http" url="http://standards.freedesktop.org/menu-spec/latest/">XDG Desktop Menu Specification</ulink>.

Parameters:

this

An SMClient

desktop_file

The path to the application's .desktop file