Skip to content

Can't input «angle quotes» into applications linked with libxkbcommon 1.5.0 running in GNOME linked with libxkbcommon 1.6.0 #435

Closed

Description

@gentoo-root

I run the latest Arch Linux with GNOME 45.3, it uses libxkbcommon 1.6.0. Some applications (installed with flatpak) use libxkbcommon 1.5.0 (flatpak's runtime is stuck with the old version). For example, these applications are Telegram (Qt) and Lutris (GTK). There is a runtime incompatibility between versions that doesn't allow me to type angle quotes «» into these applications.

Steps to reproduce:

  1. Prepare the system according to the description above, i.e. install an application from flatpak, such as Telegram or Lutris.
  2. Enable misc:typo,lv3:ralt_switch XKB options.
  3. Open an application linked with libxkbcommon 1.5.0 (such as Telegram or Lutris) and put the cursor into any text field.
  4. Try to type the angle quotes «» using RightAlt+< and RightAlt+>.
  5. Nothing happens. Expected: angle quotes appear just as any other character.

References:

Telegram bug report: telegramdesktop/tdesktop#26976
Flatpak bug report: flatpak/flatpak#5585

Activity

  1. wismill commented on Jan 22, 2024

    @wismill
    Member

    Thank you for your report. This is due to upstream change in xorgproto: e.g. keysym guillemotleft has be deprecated in favor of guillemetleft.

    What happen is:

    • System xkbcommon 1.6 reads guillemotleft (deprecated) keysym from XKB database.
    • Whenever an app asks for the keymap, it rewrites it to non-deprecated guillemetleft.
    • But your app uses xkbcommon 1.5 that does not recognize guillemetleft, so you get nothing when typing it.

    The immediate solution is to downgrade your system libxkbcommon. The long term solution is to upgrade the libxkcommon used by the flatpak.

    This is unfortunate but this is also a limitation of using flatpaks: you get libraries version incompatibilities.

  2. wismill commented on Jan 22, 2024

    @wismill
    Member

    @whot @bluetech how could we have a better handling of this situation? I now realize that the author of the merge requests in xorgproto has done no impact assessment at all and there has been multiple issues related to keysym modifications; notably deleted dead keys in keyboard layout projects such as Neo and Bépo.

    The fix would be to postpone the deprecation (by changing line order in the header) in order to let time to the apps to upgrade. The impact is not only limited to sandboxed apps: legacy X11 apps may be impacted if a distro did not upgrade X11 with libxkbcommon.

  3. whot commented on Jan 25, 2024

    @whot
    Contributor

    Honestly, I think it's best to revert those patches in xorgproto. They were deprecated but still used (because there's nothing in place to detect use of deprected symbols) so removing them just broke things. Having those deprecated symbols doesn't really hurt in xorgproto, we'll spend more time debugging things like this than in total maintainer time spent on those symbols for the next decade...

  4. wismill commented on Feb 3, 2024

    @wismill
    Member

    @whot I agree. I opened an MR for xorgproto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions