Bug 442942 - Keyboard layout per application doesn't persist after reboot
Summary: Keyboard layout per application doesn't persist after reboot
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-25 15:23 UTC by Jason
Modified: 2021-10-27 04:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason 2021-09-25 15:23:42 UTC
Not sure if this is really a bug or a feature hehe. I have two keyboard layouts, the main one and a secondary which I use on specific apps like Konsole.

Somehow my choices only persist during the session and are lost every time I boot, so I have to manually switch layout for the first time I open those apps.

On the settings I have keyboard layout policy set to 'application', which works with the mentioned caveat.

One solution I've tried is creating a KWin rule for the applications I want to have a different layout, but there are no rules for that, only things mainly related to the window (focus, opacity, placement ...).


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.22.5
KDE Framework Version: 5.86.0
Qt Version: 5.15.2
Comment 1 Andrey 2021-09-25 23:21:00 UTC
Please try on Wayland, if the issue persists, try to find reproducer.
Thanks.
Comment 2 Andrey 2021-09-25 23:51:16 UTC
PS:
forgot to mention: for Wayland, there must be "Restore previous saved session" set in Settings to restore the layout on boot-up.
Comment 3 Jason 2021-09-26 13:28:17 UTC
"Restore previous saved session" was already checked in settings.

I've managed to reproduce the issue consistently.

1) On a running session change layout for Konsole application
2) Close session and login back again
3) Open Konsole application and layout is correct
4) Open Firefox and layout changes to default, which is correct
5) Switch back to Konsole. I can see layout inidicator on panel flipping but it doesn't change and remains on previous one (default)

Once I set again the correct layout for Konsole, every time I switch applications I get what I expect.

Hope this helps.
Comment 4 Andrey 2021-09-26 21:33:03 UTC
Was it on Wayland?
There might be glitches on X11 and they probably don't worth the efforts to fix them.
Comment 5 Jason 2021-09-27 10:33:29 UTC
On X11 the issue happens first time I change back to Konsole from another app with a different layout. Later on, choices are respected no matter if I close and re-open Konsole.

On Wayland I see a different problem. Layout is respected while changing between windows, but every time I open a new Konsole I have to set it up.
Comment 6 Andrey 2021-09-27 10:54:57 UTC
(In reply to Jason from comment #5)
> On Wayland I see a different problem. Layout is respected while changing
> between windows, but every time I open a new Konsole I have to set it up.

Note if you open a new window from within Konsole itself, it will respect the layout. Could you open a separate issue about that?

Also, could you make sure Konsole layout persists between sessions if you don't close it's window? That would mean the issue you opened here is not relevant for Wayland.
Comment 7 Jason 2021-09-27 12:20:34 UTC
> Also, could you make sure Konsole layout persists between sessions if you
> don't close it's window? That would mean the issue you opened here is not
> relevant for Wayland.

If you mean on X11, keyboard layout is always correct the first time you interact with Konsole, no matter if it is already open when you login or with a fresh new window. Problem happens when switching back from another app: keyboard layout change gets stucked and once you do it manually it works well from that point on.

On Wayland switching between windows doesn't seem to trigger the bug.
Comment 8 Andrey 2021-09-27 12:45:27 UTC
No, I meant on Wayland. Please make sure it restores the layout correctly:

> Also, could you make sure Konsole layout persists between sessions if you
> don't close it's window?
Comment 9 Jason 2021-09-27 13:33:54 UTC
(In reply to Andrey from comment #8)
> No, I meant on Wayland. Please make sure it restores the layout correctly:
> 
> > Also, could you make sure Konsole layout persists between sessions if you
> > don't close it's window?

That's the case, layout is correct when I close the session leaving Konsole window open.
Comment 10 Andrey 2021-09-27 14:03:09 UTC
Thanks. Then let's open a wayland-specific issue:

(In reply to Andrey from comment #6)
> (In reply to Jason from comment #5)
> > On Wayland I see a different problem. Layout is respected while changing
> > between windows, but every time I open a new Konsole I have to set it up.
> 
> Note if you open a new window from within Konsole itself, it will respect
> the layout. Could you open a separate issue about that?
Comment 11 Jason 2021-09-27 14:34:48 UTC
(In reply to Andrey from comment #10)
> Thanks. Then let's open a wayland-specific issue:

Does this mean the bug is a wont-fix on X11?
Comment 12 Andrey 2021-09-27 17:13:12 UTC
I'm afraid it is.
If the fix was obvious we could try it, but no one will go to investigate it on a dead platform, I think. Sorry.
Comment 13 Bug Janitor Service 2021-10-12 04:35:49 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 14 Bug Janitor Service 2021-10-27 04:35:24 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!