xfce4-xkb-plugin should be updated to include GUI-manageble keyboard layout switcher shortcut

Bug #290255 reported by markor
6
Affects Status Importance Assigned to Milestone
xfce4-xkb-plugin
Fix Released
High
xfce4-xkb-plugin (Ubuntu)
Fix Released
Wishlist
Lionel Le Folgoc

Bug Description

If you take a look at the xfce4-xkb-plugin version provided you can see that
version till Interpid/8.10 is 0.4.3

Newer version of xfce4-xkb-plugin 0.5.1 include very convenient way of choosing
default keyboard shortcut for changing keyboard layouts.

Instead of manually changing xorg.conf for all users, we should just have newer version of xfce4-xkb-plugin..
http://goodies.xfce.org/releases/xfce4-xkb-plugin/

Explanation:
http://beranger.org/index.php?page=diary&2008/10/22/07/39/47-multiple-keyboard-layouts-in-xfc
New Look of xfce4-xkb-plugin: http://beranger.org/blogo21/new_xkb-plugin.png

Current behavior: xfce4-xkb-plugin does not include solution to define layout change shortcut with GUI
Desired Behavior: xfce4-xkb-plugin should include option to change keyboard layout shortcut
Solution: Iclude new version of xfce4-xkb-plugin (0.5.1) in Ubuntu repository.

Revision history for this message
In , Magicfab-h (magicfab-h) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7
Build Identifier:

Initially reported at:
https://launchpad.net/distros/ubuntu/+source/xfce4-xkb-plugin/+bug/43185

Additional keyboard variants are not shown properly/fully in a descriptive manner in the keyboard switcher applet in XFCE.

Reproducible: Always

Steps to Reproduce:
1. Add an alternat keyboard variant in /etc/X11/xorg.conf :
Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc104"
        Option "XkbLayout" "us,us"
        Option "XkbVariant" ",alt-intl"
EndSection

2. Logout, then login again
3. Add keyboard applet to XFCE panel
4. switch among keyboards by clicking on the applet
Actual Results:
XFCE keyboard switcher shows only the keyboard layout text label without the keyboard layout variant (in this case Alternative International for the 2nd layout).

Similarly, a hint indicating the variant is changing could be added to the flag icon display. I think this is what the same applet in Gnome does.

Expected Results:
XFCE keyboard switcher should show the layout and variant information.

This is a major usability problem for anyone using anything else than a standard US layout. I understand to even configure an alternate keyboard under XFCE at this point there is no "friendly" way unless you do it with the gnome tools first. Regardless, I think the way it's displayed is part of fixing the overall usability problem for anyone wishing to have keyboard variants. Another XFCE bug talks about adding layout config options to this applet config dialog:
http://bugzilla.xfce.org/show_bug.cgi?id=1901

The variant *label description* can be very long, but the label itself is at most 22 characters, most being aroun 7~ 10. I checked this in this file:
/usr/lib/X11/xkb/rules/xfree86.lst

However, even 7~10 characters is too long to show.

Ultimately, this should be as configurable as the date-hour settings which permit using a variable-based template.

The way variants are used, I think, is mostly as a modification of an existing keyboard layout. For example, US becomes US - International. This is in effect the keyboard layout code plus the keyboard variant description.

I suggest to have the keyboard layout plus variant description as a hint (mouse-over bubble/dialog), which would make it friendly to its panel space. This, again, should be configurable by variables.

In the panel applet space, I think Gnome uses an asterisk (*) to differentiate between a variant and its standard layout. So, if I follow my configuration example, If I had only one variant for US, repeatedly changing the layout would show US and US(*) only in the applet panel (or a flag with a distinctive mark). Hovering over it would show the keyboard layout plus variant description (US - International).

Any other suggestions welcome.

Revision history for this message
In , Jeromeg (jeromeg) wrote :

This still seems to be a problem.

Revision history for this message
In , Skipper13 (skipper13) wrote :

The same bug on Arch Linux
http://bugs.archlinux.org/task/8595
====================================
After upgrade xfce4-xkb-plugin doesn't show flag for "RU" and "UK" but PNG-files have been. Plugin showes US flag only. For other languages showes "(null)" string.

Additional info:
* xfce4-xkb-plugin 0.4.3-3
*
/etc/X11/xorg.conf
===================
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru,ua"
Option "XkbOptions" "grp:ctrl_shift_toggle"
EndSection
===================

ls /usr/share/xfce4/xkb/flags/{ru,uk}.png -l
===================
-rw-r--r-- 1 root root 215 Apr 16 2007 /usr/share/xfce4/xkb/flags/ru.png
-rw-r--r-- 1 root root 1210 Apr 16 2007 /usr/share/xfce4/xkb/flags/uk.png
===================

When I change keyboard layout plugin write to log error message
===================
(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed

(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed

(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed

(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed

(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed

(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed

(xfce4-xkb-plugin:8319): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed
===================

Revision history for this message
In , Jean-François Wauthy (pollux-xfce) wrote :

*** Bug 3409 has been marked as a duplicate of this bug. ***

Revision history for this message
markor (markoresko) wrote :
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Too late (and too many changes) for intrepid, it'll be for jaunty.

Revision history for this message
markor (markoresko) wrote :

Great news! :)
I can`t wait fo Jaunty repository to start, so that i could download ubuntu variant of the source
so I could make package for Hardy.

Revision history for this message
Radu Cristian Fotescu (beranger) wrote :

I *do* understand the 'megafreeze' policy of all the distros who release twice a year, however, could you please explain me:

1. How is this "too many changes", as long as there is no new dependency, but a mere recompiling of an updated source package?

2. Why can't this be pushed as an update, or possibly as a backport as a last resort? Note that this is in "universe", so Ubuntu does *not* need to support it.

3. Why can't "per case" decisions be taken, knowing that there is so very unlikely to experience regressions with such a package, and it is *not* a "fundamental" package anyway?

At times, the packaging policies of the mainstream distros are making me crazy!

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote : Re: [Bug 290255] Re: xfce4-xkb-plugin should be updated to include GUI-manageble keyboard layout switcher shortcut

Radu Cristian Fotescu a écrit :
> I *do* understand the 'megafreeze' policy of all the distros who release
> twice a year, however, could you please explain me:
>
> 1. How is this "too many changes", as long as there is no new
> dependency, but a mere recompiling of an updated source package?

Please read
http://foo-projects.org/pipermail/goodies-dev/2008-September/001734.html

Quoting the developer: "Since 90% of the code is new any feedback will
be greatly appreciated."

This is what I call "too many changes".

> 2. Why can't this be pushed as an update, or possibly as a backport as a
> last resort? Note that this is in "universe", so Ubuntu does *not* need
> to support it.

After a release, only security or bugfix updates (Stable Release Update)
are allowed.
Nobody said it couldn't be backported: it just needs to be packaged and
uploaded for jaunty as soon as the repositories open, and then you'll be
able to request a backport (you don't even have to be a developer for that).

> 3. Why can't "per case" decisions be taken, knowing that there is so
> very unlikely to experience regressions with such a package, and it is
> *not* a "fundamental" package anyway?

Have you tested it on several configurations to say this?
Anyway, ask the Xubuntu Team Leader, motu-release and/or motu-sru if you
want a per-case decision on this.

--
Lionel Le Folgoc - https://launchpad.net/~mrpouit
EEBA 555E 0CDE 92BB 3AF4 4AB3 45A0 357B 5179 5910

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Uploaded to jaunty, you should be able to ask for a backport now.

Changed in xfce4-xkb-plugin:
assignee: nobody → mrpouit
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xfce4-xkb-plugin - 0.5.1-0ubuntu1

---------------
xfce4-xkb-plugin (0.5.1-0ubuntu1) jaunty; urgency=low

  * Sync from Debian Xfce SVN Unreleased
    - Once 4.4.3 is uploaded to Debian, this package should
      be synced, there is no Ubuntu delta
  * Closes:
    - xfce4-xkb-plugin should be updated to include GUI-manageble keyboard
      layout switcher shortcut (LP: #290255)
    - XFCE keyboard switcher doesn't show variant label (LP: #43185)
    - xfce4-xkb-plugin crashed with SIGSEGV (LP: #122851).

xfce4-xkb-plugin (0.5.1-1) UNRELEASED; urgency=low

  [ Simon Huggins ]
  * debian/control: Move fake Homepage field to a real one now dpkg
    supports it.
  * Add Vcs-* headers to debian/control

  [ Yves-Alexis Perez ]
  * New upstream release.
    - fix mispell in README file. closes: #445335
    - now displays variant. closes: #496183, #434124
  * debian/control:
    - add myself to Uploaders:, remove Rudy Godoy and Martin Loschwitz.
    - update standards version to 3.8.0.
    - add build-dep on libxklavier12-dev, librsvg2-dev, libwnck-dev.
  * debian/copyright: update dates and copyright owners.

 -- Lionel Le Folgoc <email address hidden> Tue, 11 Nov 2008 10:05:40 +0100

Changed in xfce4-xkb-plugin:
status: Fix Committed → Fix Released
Changed in xkb:
status: Unknown → Confirmed
Revision history for this message
In , Igor-slepchin (igor-slepchin) wrote :

In the current version (0.5.6) the variant is shown in the balloon text activated on the mouseover; if multiple variants of the same layout are configured, they are visually differentiated by adding "dots" to the layout name (similar to the asterisk trick described in comment #1). This seems to satisfy the requirements.

Changed in xkb:
importance: Unknown → High
status: Confirmed → 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.