Keyboard layout always defaults to the first available layout

Bug #1998214 reported by fossfreedom
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
budgie-desktop (Ubuntu)
Fix Released
Medium
fossfreedom
Jammy
Fix Released
Medium
fossfreedom
Kinetic
Fix Released
Medium
fossfreedom
Lunar
Fix Released
Medium
fossfreedom

Bug Description

[ Impact ]

 * For some multi-keyboard layout users (e.g. en_US, en_GB and zh_TW) their preferred layout on login is not immediately available - the preferred layout defaults to the first keyboard layout even though another layout such as en_GB is set as the current and is shown via the keyboard layout applet.
 * this issue is specifically about keyboard layouts that involve ibus.
   keyboard layouts where ibus is not available/uninstalled already
   correctly default to the last chosen keyboard layout.

[ Test Plan ]

 * Test that ibus-daemon is running
   ps -ef | grep ibus-daemon
   if the process is running then proceed with the test plan
   if the process is not running then install ibus, logout and login
   to test that ibus-daemon is indeed running
 * 1) on login open a terminal (CTRL+ALT+T) or an application and type a character such as the quote key or the currency key.
 * If the quote key defaults to something else such as the @ key or the currency key defaults to $ then you have a default layout of en_US.
 * Add the keyboard layout applet to your panel
 * from the list provided choose another keyboard layout
 * Repeat test step "1)" above. Check that your chosen keyboard layout is correctly applied.

 * from the proposed repo install the following packages:

   sudo apt update
   sudo apt install budgie-desktop budgie-core libbudgie-plugin0 libbudgie-private0 libbudgietheme0 libraven0 gir1.2-budgie-1.0

 * Logout and login

 * Repeat the above testing again - on login your expected layout should be applied e.g. en_GB if that was your last chosen layout.
 * Lastly purge ibus
   sudo apt purge ibus
 * logout and login
 * check that the last keyboard layout is applied

[ Where problems could occur ]

 * Primarily the key issue is introducing a stability issue on budgie such as crash on login.
 * Additionally the other issue is introducing a regression in applying keyboard layouts for more people rather than eliminating the issue.
 * As such this fix has been iteratively developed through a multi-month testing regime with multiple community team members
https://discourse.ubuntubudgie.org/t/language-switcher/5864
https://discourse.ubuntubudgie.org/t/cant-change-keyboard-layout/5293

[ Other Info ]

 * N/A

---

Users with two or more keyboard layouts find that their initial keyboard layout on login is the first available layout rather than the last layout chosen before logout.

This causes a mismatch between the keyboard layout applet and the keyboard layout observed by the user - confusing. The user has to switch back to the first layout and back to the last layout to initialise the keyboard layout used.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: budgie-core 10.6.4+git20220830-2
ProcVersionSignature: Ubuntu 5.19.0-23.24-generic 5.19.7
Uname: Linux 5.19.0-23-generic x86_64
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: Budgie:GNOME
Date: Tue Nov 29 13:13:41 2022
InstallationDate: Installed on 2022-11-27 (1 days ago)
InstallationMedia: Ubuntu-Budgie 22.10 "Kinetic Kudu" - Release amd64 (20221018.1)
SourcePackage: budgie-desktop
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
fossfreedom (fossfreedom) wrote :
Changed in budgie-desktop (Ubuntu):
importance: Undecided → Medium
assignee: nobody → fossfreedom (fossfreedom)
Changed in budgie-desktop (Ubuntu Jammy):
assignee: nobody → fossfreedom (fossfreedom)
Changed in budgie-desktop (Ubuntu Kinetic):
assignee: nobody → fossfreedom (fossfreedom)
importance: Undecided → Medium
Changed in budgie-desktop (Ubuntu Jammy):
importance: Undecided → Medium
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package budgie-desktop - 10.6.4+git20220830-4

---------------
budgie-desktop (10.6.4+git20220830-4) unstable; urgency=medium

  * Bug-fix
    - Ensure last keyboard layout used is the keyboard layout chosen
      on logon
      Add-a-small-delay-to-ensure-keyboard-layout-defaults.patch
      (LP: #1998214)
  * Packaging Changes
    - d/control budgie:update dependencies and suggestions for underlying
      required packages used in the source together with suggested packages
      to enhance the experience
    - d/control apply multiarch hint to budgie-desktop-doc
    - d/watch(.nopgp) update to resolve github release URL changes

 -- David Mohammed <email address hidden> Tue, 29 Nov 2022 15:04:14 +0000

Changed in budgie-desktop (Ubuntu Lunar):
status: New → Fix Released
Changed in budgie-desktop (Ubuntu Kinetic):
status: New → In Progress
Changed in budgie-desktop (Ubuntu Jammy):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello fossfreedom, or anyone else affected,

Accepted budgie-desktop into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/budgie-desktop/10.6.4+git20220830-2ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in budgie-desktop (Ubuntu Kinetic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-kinetic
Changed in budgie-desktop (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
fossfreedom (fossfreedom) wrote :

On kinetic tested package 10.6.4+git20220830-2ubuntu1

Ran through the test plan without any adverse issues observed.

Revision history for this message
fossfreedom (fossfreedom) wrote :

On jammy tested package 10.6.1-1ubuntu3

Ran through the test plan without any adverse issues observed

tags: added: verification-done verification-done-kinetic
removed: verification-needed verification-needed-kinetic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package budgie-desktop - 10.6.4+git20220830-2ubuntu1

---------------
budgie-desktop (10.6.4+git20220830-2ubuntu1) kinetic; urgency=medium

  * Bug-fix
    - Ensure last keyboard layout used is the keyboard layout chosen
      on logon
      Add-a-small-delay-to-ensure-keyboard-layout-defaults.patch
      (LP: #1998214)

 -- David Mohammed <email address hidden> Thu, 01 Dec 2022 20:55:41 +0000

Changed in budgie-desktop (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for budgie-desktop has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

tags: added: verification-done-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package budgie-desktop - 10.6.1-1ubuntu3

---------------
budgie-desktop (10.6.1-1ubuntu3) jammy; urgency=medium

  * Bug-fix
    - Prevent crash to desktop where ibus has been disabled/uninstalled
      Initialise-ibus-within-the-class-constructor.patch (LP: #1998044)
    - Ensure last keyboard layout used is the keyboard layout chosen
      on logon
      Add-a-small-delay-to-ensure-keyboard-layout-defaults.patch
      (LP: #1998214)

 -- David Mohammed <email address hidden> Thu, 01 Dec 2022 20:46:58 +0000

Changed in budgie-desktop (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.