YaST2 Developers Documentation: Handling of default desktop selection

Handling of default desktop selection

DefaultDesktop.ycp
  • Jiri Srain
  • Lukas Ocilka

This module has an unstable interface.

Imports

  • Installation
  • Mode
  • PackagesProposal
  • ProductControl
  • ProductFeatures

Structures

Global Functions

Local Variables

local desktop -> string

Desktop which was selected in the desktop selection dialog. Must be defined in control file in section software->supported_desktops.

global Init () -> void

Initialize default desktop from control file if specified there

global ForceReinit () -> void

Forces new initialization...

global GetAllDesktopsMap () -> map <string, map>

Returns map of pre-defined default system tasks

Structure $[

     "desktop ID" : $[
         "desktop" : "desktop to start", // DEFAULT_WM
         "order" : integer,
         "label" : _("Desktop Name Visible in Dialog (localized - initial localization)"),
         "label_id" : _("Desktop Name Visible in Dialog (original)"),
         "description" : _("Description text of the desktop (localized - initial localization)"),
         "description_id" : _("Description text of the desktop (originale)"),
         "patterns" : ["list", "of", "related", "patterns"],
         "icon" : "some-icon", // filename from the 64x64 directory of the current theme (without .png suffix)
     ],
 ]
Return value:
all_system_tasks
global SelectedDesktops () -> list <string>

Return list installed desktops or desktop selected for installation.

See
GetAllDesktopsMap
global Desktop () -> string

Get the currently set default desktop, nil if none set

Return value:
desktop or nil
global SetDesktop (string new_desktop) -> void

Set the default desktop

Parameters:
new_desktop
global PrefferedWindowManager () -> string

Get preffered window/desktop manager for the selected desktop

Return value:
preffered window/desktop manager, empty if no one
global PatternsToSelect () -> list<string>

Get patterns which should be selected for currently selected desktop

Return value:
a list of patterns
global PatternsToDeselect () -> list<string>

Get patterns which should be NOT selected for currently selected desktop

Return value:
a list of patterns
global Description () -> string

Get the description of the currently selected desktop for the summary

Return value:
the description of the desktop