Bug 474420

Summary: systemsettings drops a shortcut
Product: [Applications] systemsettings Reporter: basm
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: "about this system"

Description basm 2023-09-11 17:46:41 UTC
Created attachment 161564 [details]
"about this system"

SUMMARY
STEPS TO REPRODUCE
OBSERVED RESULT

a number of times now i've asked systemsettings to swap 2 shortcuts, and it appears to comply but drops one of the shortcuts.  here's the sequence as it happened today (with more details than you'd expect to be relevant but you never know):

fresh recent bootup into text console, launch xorg with xterm, launch startkde from xterm (with alias '(startkde >/tmp/Sk.$(date +%F%a%T.%N).eso 2>&1&)'), launch /bin/pavucontrol-qt (with a similar alias) and firefox nightly (with a similar function) from xterm, by the way in addition to the laptop screen eDP-1 i have both a DP-2 and an HDMI-1 attached, Focus follows mouse (mouse precedence), and Focus stealing prevention Extreme

look at calendar.google.com and bard.google.com a bit
try ctl+f12 (defined as Peek at Desktop), surprise it clears away my xterms but not the maximized bard window, try alt+f12 (defined as MinimizeAll), it clears away all of them, try both a few times, the behaviors remain consistent, decide to swap them

open systemsettings from the taskbar, change MinimizeAll to ctl+f12, confirm i want to redefine it from Peek at Desktop, set Peek to Desktop to alt+f12, hit apply

try alt+f12, Peek at Desktop still clears away the xterms but not the maximized bard window, but ctl+f12 does nothing now.  systemsettings still shows it as defined.

close systemsettings, relaunch from taskbar, now MinimizeAll shows as "No active shortcuts", so again define it as ctl+f12, hit apply, now it works.

EXPECTED RESULT
should work the first time

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  see attached "about this system"
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Nate Graham 2023-09-12 17:52:58 UTC
Any chance you could reset to default shortcuts settings and attach a screen recording of you configuring the system this way and reproducing the bug? I ask because I'm having a bit of a hard time following what exactly is going on. Thanks!
Comment 2 Bug Janitor Service 2023-09-27 03:46:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 basm 2023-10-02 03:36:32 UTC
how might i reset to default shortcut settings?  and how might i save and restore either all shortcut settings or all kwin shortcut settings?
Comment 4 basm 2023-10-03 00:22:36 UTC
ok,

create new user
log in new user
    launch xorg with xterm as window manager
    launch startkde from xterm
launch systemsettings
create xwin shortcut for an unassigned action
create xwin shortcut for a second unassigned action
exit systemsettings, hit apply on popup
launch systemsettings
swap the two shortcuts
exit systemsettings, hit apply on popup
launch systemsettings
on my system the first shortcut is missing

on my system login is on text console.  i doubt that's relevant to the issue, i hope and expect you can ignore the steps to launch xorg and startkde

let me point out as mentioned in the OP in addition to the laptop screen eDP-1 i have both a DP-2 and an HDMI-1 attached, Focus follows mouse (mouse precedence), and Focus stealing prevention Extreme.  i'd guess if any of these are relevant the latter two are the most likely to be relevant

i have a screen recording of the above starting after the first launch of systemsettings.  it's 69mb, i doubt compression would get it under 4mb, i'd probably have to work out where to upload it for you, i'll look into that if you need it, but i'd guess the above steps are clear enough
Comment 5 basm 2023-10-05 22:04:49 UTC
"swap the two shortcuts" above has a high likelihood of being the step that elicits the bug.  perhaps i should elucidate how i do that step:

Change the first action to be activated by the second shortcut.  this elicits a popup saying that shortcut is already assigned, do you want to reassign it?
Answer yes.
Then change the second action to be activated by the first shortcut.