56. DefaultDesktop

56.1. Authors

  • Jiri Srain <jsrain@suse.cz>

  • Lukas Ocilka <locilka@suse.cz>

56.2. 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

  • ForceReinit - Forces new initialization...

  • 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

    56.3. Global Functions

    56.3.1. Description

    Get the description of the currently selected desktop for the summary

    Return value

    • string - the description of the desktop

    56.3.2. Desktop

    Get the currently set default desktop, nil if none set

    Return value

    • string - desktop or nil

    56.3.3. ForceReinit

    Forces new initialization...

    Return value

    • void

    56.3.4. 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 (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)
         ],
     ]

    56.3.5. Init

    Initialize default desktop from control file if specified there

    Return value

    • void

    56.3.6. PatternsToDeselect

    Get patterns which should be NOT selected for currently selected desktop

    Return value

    • list<string> - a list of patterns

    56.3.7. PatternsToSelect

    Get patterns which should be selected for currently selected desktop

    Return value

    • list<string> - a list of patterns

    56.3.8. PrefferedWindowManager

    Get preffered window/desktop manager for the selected desktop

    Return value

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

    56.3.9. SelectedDesktops

    Return list installed desktops or desktop selected for installation.

    Return value

    • list <string>

    See also:

    • GetAllDesktopsMap

    56.3.10. SetDesktop

    Set the default desktop

    Function parameters

    • string new_desktop

    Return value

    • void

    56.4. Global Variables

    56.5. Module Requirements

    56.5.1. Module Imports

    • Installation
    • Mode
    • PackagesProposal
    • ProductControl
    • ProductFeatures

    56.5.2. Module Includes