Handling of default desktop selection |
DefaultDesktop.ycp |
|
|
|
This module has an unstable interface. |
Imports
StructuresGlobal Functions
Local Variables |
Desktop which was selected in the desktop selection dialog. Must be defined in control file in section software->supported_desktops.
Initialize default desktop from control file if specified there
Forces new initialization...
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
Return list installed desktops or desktop selected for installation.
Get the currently set default desktop, nil if none set
- Return value:
-
desktop or nil
Set the default desktop
- Parameters:
-
new_desktop
Get preffered window/desktop manager for the selected desktop
- Return value:
-
preffered window/desktop manager, empty if no one
Get patterns which should be selected for currently selected desktop
- Return value:
-
a list of patterns
Get patterns which should be NOT selected for currently selected desktop
- Return value:
-
a list of patterns
Get the description of the currently selected desktop for the summary
- Return value:
-
the description of the desktop