Handling of default desktop selection |
DefaultDesktop.ycp |
|
|
This module has an unstable interface. |
Imports
StructuresGlobal Functions
Local Variables |
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"), "description" : _("Description text of the desktop"), "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.
local
desktop
->
string
Desktop which was selected in the desktop selection dialog "kde", "kde3", "gnome", "xfce", "min_x", "textmode", nil
global
Desktop ()
->
string
Get the currently set default desktop, nil if none set
- Return value:
-
"kde", "kde3", "gnome", "xfce", "min_x", "textmode", 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
global
Init ()
->
void
Initialize default desktop from control file if specified there