From f29e37cd53394b121dd24e0d493bd4796f4896a5 Mon Sep 17 00:00:00 2001 From: Stefan Hundhammer Date: Mon, 15 Nov 2021 18:32:30 +0100 Subject: [PATCH 1/2] Force loading the UI by default --- library/general/src/lib/ui/ui_extension_checker.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/library/general/src/lib/ui/ui_extension_checker.rb b/library/general/src/lib/ui/ui_extension_checker.rb index 47599a13e..bb8d6cbbd 100644 --- a/library/general/src/lib/ui/ui_extension_checker.rb +++ b/library/general/src/lib/ui/ui_extension_checker.rb @@ -30,11 +30,13 @@ class UIExtensionChecker # Constructor: Create a UI extension checker for the specified extension. # # @param ext_name [String] Short name of the UI extension ("pkg", "graph") + # @param force_ui [Boolean] Enforce creating a UI? # - def initialize(ext_name) + def initialize(ext_name, force_ui = true) textdomain "base" @ext_name = ext_name @ok = false + ensure_ui_created if force_ui @ui_plugin_info = UIPluginInfo.new ensure_ext_installed end @@ -67,6 +69,16 @@ def ensure_ext_installed @ok end + # Ensure that the UI is actually created: In CLI mode, that might be + # delayed because normally they should't create a UI at all. + # + def ensure_ui_created + # Just a UI call that doesn't do anything; this is already sufficient to + # load the UI main plug-in completely if it wasn't loaded yet. + # See also bsc#1192650 + UI.WidgetExists(:foo) + end + # Check if the UI extension plug-in is installed. # This also sets @ok. # From 62ae9394e70eb0e53bbd962ade157bfbc2c78119 Mon Sep 17 00:00:00 2001 From: Stefan Hundhammer Date: Mon, 15 Nov 2021 18:35:12 +0100 Subject: [PATCH 2/2] Version bump and change log --- package/yast2.changes | 7 +++++++ package/yast2.spec | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package/yast2.changes b/package/yast2.changes index 195765ee0..70ca7e5dd 100644 --- a/package/yast2.changes +++ b/package/yast2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 15 17:33:48 UTC 2021 - Stefan Hundhammer + +- Force creating the UI before checking -pkg etc. UI plug-ins + (bsc#1192650) +- 4.4.22 + ------------------------------------------------------------------- Fri Nov 12 12:32:19 UTC 2021 - Imobach Gonzalez Sosa diff --git a/package/yast2.spec b/package/yast2.spec index 876220222..156d3de6d 100644 --- a/package/yast2.spec +++ b/package/yast2.spec @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.4.21 +Version: 4.4.22 Release: 0 Summary: YaST2 Main Package License: GPL-2.0-only