When screen is locked, the default language for password entry should be the user's default language

Bug #154744 reported by galtbug
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-screensaver (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

* To be clear, by language I mean keyboard layout.

Right now it defaults to the currently used language of whatever had focus last. When the language is changed for password entry and computer is unlocked, the currently used language in the focused window is changed to the language used for password entry.

So if the user with English as the default language is on IM typing in Spanish and locks the screen, when they come back, the language for password entry is Spanish. They get the password wrong, notice the language is wrong, change the language, enter the password, then they're back on IM and need to change the language back to Spanish.

Revision history for this message
galtbug (galt280) wrote :

This is also true for the gksu prompt.

Revision history for this message
Andreas Moog (ampelbein) wrote :

Is this still an issue for hardy?

Changed in gnome-desktop:
importance: Undecided → Low
Revision history for this message
galtbug (galt280) wrote :

Yes, still an issue in Hardy. And it affects gksu as well as gnome-screensaver.

Revision history for this message
galtbug (galt280) wrote :

For gksu, the problem only arises when it grabs focus (the default behaviour). Running `gksu -g $COMMAND` brings up a regular window, with a proper initial keyboard-layout.

Andreas Moog (ampelbein)
Changed in gnome-screensaver:
status: Incomplete → Confirmed
Revision history for this message
galtbug (galt280) wrote :

After spending a few hours with the gksu source code, it seems pretty obvious to me that the problem is that the pop-up is not considered as a new window, but as a tooltip.

From libgksu's source code:

  if (context->grab)
    dialog = g_object_new (GKSUUI_TYPE_DIALOG,
      "type", GTK_WINDOW_POPUP,
      "sudo-mode", context->sudo_mode,
      NULL);

From GTK's documentation (http://library.gnome.org/devel/gtk/stable/gtk-Standard-Enumerations.html#GtkWindowType):
Windows with type GTK_WINDOW_POPUP are ignored by the window manager... many GTK+ features that rely on the window manager will not work... GTK_WINDOW_POPUP is used to implement widgets such as GtkMenu or tooltips that you normally don't think of as windows per se.

So this bug seems to be caused by the dialog's lack of window management features.

Revision history for this message
bryncoles (brunomatti) wrote :

I recently encountered this bug too. I think rather than the screen-saver input language being the users default though, it should simply include a 'switch-language' option, as the login screen does.

Revision history for this message
Lachezar Dobrev (lachezar) wrote :

This bug persists in Lucid Lynx, Maverick Meerkat, Natty Narwhal and Oneiric Ocelot (release candidate).
To make matters worse, occasionally the keyboard layout indicator shows default layout, but the input is NOT in the default layout. The user has to change layouts multiple times until it's changed to the default and shows so.
I am not sure whether I can lock my account out this way, and frankly I'm not eager to try...

Revision history for this message
Norbert (nrbrtx) wrote :

Precise Pangolin 12.04 ignores keyboard layout while entering password in gnome-screensaver, see https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/879916.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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