53. DefaultDesktop

53.1. Summary of Module Globals

List of Global Functions

  • Description - Get the description of the currently selected desktop for the summary

  • Desktop - Get the currently set default desktop, nil if none set

  • GetAllDesktopsMap - Returns map of pre-defined default system tasks

  • Init - Initialize default desktop from control file if specified there

  • PatternsToDeselect - Get patterns which should be NOT selected for currently selected desktop

  • PatternsToSelect - Get patterns which should be selected for currently selected desktop

  • PrefferedWindowManager - Get preffered window/desktop manager for the selected desktop

  • SelectedDesktops - Return list installed desktops or desktop selected for installation.

  • SetDesktop - Set the default desktop

List of Global Variables

    53.2. Global Functions

    53.2.1. Description

    Get the description of the currently selected desktop for the summary

    Return value

    • string - the description of the desktop

    53.2.2. Desktop

    Get the currently set default desktop, nil if none set

    Return value

    • string - "kde", "kde3", "gnome", "xfce", "min_x", "textmode", nil

    53.2.3. GetAllDesktopsMap

    Returns map of pre-defined default system tasks

    Return value

    • map <string, map> - all_system_tasks

    $[
         "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)
         ],
     ]

    53.2.4. Init

    Initialize default desktop from control file if specified there

    Return value

    • void

    53.2.5. PatternsToDeselect

    Get patterns which should be NOT selected for currently selected desktop

    Return value

    • list<string> - a list of patterns

    53.2.6. PatternsToSelect

    Get patterns which should be selected for currently selected desktop

    Return value

    • list<string> - a list of patterns

    53.2.7. PrefferedWindowManager

    Get preffered window/desktop manager for the selected desktop

    Return value

    • string - preffered window/desktop manager, empty if no one

    53.2.8. SelectedDesktops

    Return list installed desktops or desktop selected for installation.

    Return value

    • list <string>

    53.2.9. SetDesktop

    Set the default desktop

    Function parameters

    • string new_desktop

    Return value

    • void

    53.3. Global Variables

    53.4. Module Requirements

    53.4.1. Module Imports

    • Installation
    • ProductFeatures

    53.4.2. Module Includes