Class: Installation::DesktopRoles
- Inherits:
-
Object
- Object
- Installation::DesktopRoles
- Includes:
- Yast::I18n, Yast::UIShortcuts
- Defined in:
- src/lib/installation/dialogs/desktop_roles.rb
Overview
opensuse specific installation desktop selection dialog
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'src/lib/installation/dialogs/desktop_roles.rb', line 17 def run textdomain "installation" # We do not need to create a wizard dialog in installation, but it's # helpful when testing all manually on a running system Yast::Wizard.CreateDialog if separate_wizard_needed? # Clear previously selected role Yast::ProductFeatures.ClearOverlay ret = nil loop do ret = Yast::CWM.show( content, caption: _("User Interface"), skip_store_for: [:redraw] ) break if ret != :redraw end Yast::Wizard.CloseDialog if separate_wizard_needed? # support passing addon as cmd argument, openQA use it for testing if Yast::Linuxrc.InstallInf("addon").nil? Yast::ProductControl.DisableModule("add-on") else Yast::ProductControl.EnableModule("add-on") end ret end |