Bug 447256 - layout switching shortcut not working after system login
Summary: layout switching shortcut not working after system login
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: 5.23.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-20 08:40 UTC by moshe_shelomov
Modified: 2022-01-10 15:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
/.config/kxkbrc (317 bytes, text/plain)
2021-12-20 20:49 UTC, moshe_shelomov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moshe_shelomov 2021-12-20 08:40:35 UTC
SUMMARY

After login in the system, layout switching shortcut not work, but start working after adding/removing/changing list of selected shortcuts

STEPS TO REPRODUCE
1. have more than one layout and a layout switching shortcut
2. log in the system

OBSERVED RESULT

shortcuts not working until something is changed in settings

EXPECTED RESULT

shortcuts work normally

SOFTWARE/OS VERSIONS
ArchLinux/KDE Plasma: 
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
behavior seems to be similar to the old bug: https://bugs.kde.org/show_bug.cgi?id=321923
Comment 1 Andrey 2021-12-20 17:45:51 UTC
Please test both Wayland/X11
Comment 2 moshe_shelomov 2021-12-20 18:06:06 UTC
(In reply to Andrey from comment #1)
> Please test both Wayland/X11

On wayland it works, however it starts to ignore my "spare layout" setting and instead starts to cycle trough them all
(I have 3 layouts: ru, en, he; he being the "spare" one, which I set to activate by a specific shortcut and it should't be selected otherwise, but it starts to be included in the cycle when using wayland)
Comment 3 Andrey 2021-12-20 20:23:30 UTC
"spare layout" feature is not implemented for Wayland yet. Sorry.

Could you test on fresh user? Also, it would be useful to know if it's a regression or not.

Also, where exactly you set the layout shortcut?
Comment 4 moshe_shelomov 2021-12-20 20:39:22 UTC
(In reply to Andrey from comment #3)

> Could you test on fresh user? Also, it would be useful to know if it's a
> regression or not.

I tested it on a guest user I had for a while that was basically untouched since creation - behavior is the same: works on wayland, doesnt on x11
will try on a newly created user a little later, if that is still necessary
 
> Also, where exactly you set the layout shortcut?

I have it set on: Meta("windows" key)+Space
tried adding Shift+Alt as a second one - nothing has changed
Comment 5 Andrey 2021-12-20 20:41:32 UTC
I mean - do you set it as "Main shortcut" in KCM Keyboard?
Comment 6 Andrey 2021-12-20 20:43:50 UTC
Can you dump your ~/.config/kxkbrc file?
Comment 7 moshe_shelomov 2021-12-20 20:44:36 UTC
(In reply to Andrey from comment #5)
> I mean - do you set it as "Main shortcut" in KCM Keyboard?

Ah, sorry
Yes, it is set in "main shortcuts"
Comment 8 moshe_shelomov 2021-12-20 20:49:54 UTC
Created attachment 144737 [details]
/.config/kxkbrc
Comment 9 Andrey 2021-12-20 21:33:09 UTC
Can you try other shortcuts maybe?
Comment 10 Andrey 2021-12-20 21:43:03 UTC
(In reply to moshe_shelomov from comment #8)
> Created attachment 144737 [details]
> /.config/kxkbrc

Try to delete manually these lines:
DisplayNames=,
LayoutLoopCount=2
VariantList=,

Also, try to delete il layout.

Retest with relogin.
Comment 11 moshe_shelomov 2021-12-21 08:48:40 UTC
> Try to delete manually these lines:
> DisplayNames=,
> LayoutLoopCount=2
> VariantList=,
 
> Also, try to delete il layout.

did both, no change whatsoever
Comment 12 moshe_shelomov 2021-12-21 08:56:00 UTC
(In reply to Andrey from comment #10)
 
> Try to delete manually these lines:
> DisplayNames=,
> LayoutLoopCount=2
> VariantList=,

the only change I witnessed after deleting those is that little widget of "keyboard layouts" disappears up until the above mentioned "do smth in the settings to make it work" after which it reappears normally
Comment 13 Andrey 2021-12-21 09:22:45 UTC
Try to reproduce with new user and on VM
Comment 14 moshe_shelomov 2021-12-21 19:51:10 UTC
(In reply to Andrey from comment #13)
> Try to reproduce with new user and on VM

Newly created user still has the bug

I'm unable to run VM, unfortunately, so I can't check it there.
Comment 15 Andrey 2021-12-21 19:55:56 UTC
I've ran out of ideas, if nobody can confirm I'm afraid we still need to test on VM, sorry.
Comment 16 moshe_shelomov 2021-12-21 20:02:11 UTC
(In reply to Andrey from comment #15)
> I've ran out of ideas, if nobody can confirm I'm afraid we still need to
> test on VM, sorry.

I may try asking some friends to try running vm. Which os is needed to be in vm? same as mine - vanilla arch, or any arch-based will do?
or any distro at all would work as well?
Comment 17 Andrey 2021-12-21 20:14:09 UTC
At least Neon would be fine.
Comment 18 moshe_shelomov 2021-12-22 21:07:04 UTC
(In reply to Andrey from comment #17)
> At least Neon would be fine.

I was able to use VM on my machine

KDE Neon that I ran in VM doesnt have this issue
Comment 19 Bug Janitor Service 2022-01-06 04:35:03 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 20 moshe_shelomov 2022-01-07 10:48:35 UTC
(In reply to moshe_shelomov from comment #18)
> (In reply to Andrey from comment #17)
> > At least Neon would be fine.
> 
> I was able to use VM on my machine
> 
> KDE Neon that I ran in VM doesnt have this issue

Also I should add that I reinstalled my whole system this week and before restoring my "home" folder from backup, I didnt have the issue, whilst after it - the issue returned. 
My guess is - it is caused by some kde configs conflicting with something or being damaged somehow
Comment 21 Andrey 2022-01-07 21:32:41 UTC
Make a backup of your configs, then you can drop them one by one and see which one helps.
Comment 22 moshe_shelomov 2022-01-10 15:34:16 UTC
I've managed to find a workaround using fcitx5 and disabling layout switch shortcuts in kde settings
closing the bug