Bug 1120482

Summary: yast2-online-update stealing focus is dangerous
Product: [openSUSE] openSUSE Distribution Reporter: Christoph Wickert <cwickert>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Leap 42.3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Documentation Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christoph Wickert 2019-01-02 11:27:24 UTC
yast2-online-update sometimes steals focus, which can be really dangerous.

Imagine the following situation I just ran into:
1. Run an online update in YaST.
2. As it takes some time, switch to another window where you continue.
3. While you are busy typing, yast2-online-update displays a popup-window: "Running %posttrans script for .... [Abort]".
4. Before you even realize it, you already hit the space bar, aborting the script.
5. Turns out the package in question was a kernel update and the %posttrans script was running dracut to update the initrd. The kernel is set as default, but is unbootable because the initrd is not ready.

Unless you know how to query rpm for the script and run it manually, you are now left with an unbootable system. Certainly now what we want.
Comment 1 Michal Filka 2019-01-03 08:16:52 UTC
AFAIK, Yast is not explicitly acquiring focus. In my POV it seems to be a matter of KDE settings. Try e.g. to tune "Focus Stealing Prevention Level" in KDE's "System Settings"