Assistive techologies: password dialogs as normal window + onscreen keyboard

Bug #314250 reported by Michael Flaig
4
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gksu

This applies to intrepid.

Not only that the password dialog as normal windows feature looks weird, starting applications as root does fail at the first attempt and the application hangs and needs to be killed. After starting the application again, it works.

As a hint: I use toolbar buttons without labels, but for example when I start synaptic, enter the password in the dialog with a onscreen keyboard like cellwriter keyboard or onboard keyboard, then synaptic appears with labels under the toolbar buttons and then hangs.

So this makes it very anoying to use a program as root with intrepid on a tablet pc, you always have to do start it, kill the app and start it again. Probably it works because you don't have to enter the password again in the second try - so the password is right but somehow the application call is wrong.

Please look into it! It's not a simple ugly layout issue. Thanks!

Revision history for this message
Clarke Wixon (cwixon) wrote :

I can confirm.

In Intrepid, on a Samsung Q1 UMPC (the original Celeron-M 900 version), gksu fails almost every time it runs -- which makes various administrative tasks difficult to perform, obviously.

The Q1 is a keyboard-less tablet "ultra mobile PC." I have "password dialogs as normal windows" enabled in Assistive Technologies because I use an onscreen keyboard (OnBoard).

When running a GUI program that requires root privileges, the password dialog pops up as expected, and I can use the on-screen keyboard to enter the password. Upon pressing "Enter" or "OK", the desktop stops responding normally -- it essentially "freezes up."

After that, I can sometimes launch applications from the Gnome panel, but in most cases those applications will pop up an unresponsive window that takes no input. I can also usually switch focus and raise windows by clicking on them (compiz is the WM, if it matters), but even windows with focus seem essentially frozen to input. The system-monitor applet on my panel continues to run normally, and it does NOT show abnormal CPU usage.

If I continue to click around and mess with windows, eventually even that will stop working, at which point I often have to hard-power-off. Unfortunately, with no keyboard I can't ctrl-alt-backspace to kill X, and if I'm running the Update Manager, an attempt to flick the power button to start a soft shutdown action results in a denial message: "Update Manager has stopped the policy action from taking place."

Rarely, and arbitrarily as far as I can tell, the system is responsive enough that I can start the System Monitor applet and use it to kill the "gksu" process. If I can get that far, the system un-freezes, and normal operation resumes. Even the escalation to "root" persists -- after killing gksu, I can continue to use Synaptic or whatever I was planning to do in the first place.

"sudo" from the command line operates normally -- no problems.

This functionality worked OK in Hardy, and this strange behavior began only after upgrading the distribution to Intrepid.

The foregoing written description is about all I have to offer at this point. I would be happy to help debugging this, but I don't know what other information to provide: running "gksudo" from a terminal window has the same fault, but offers no debugging output.

Revision history for this message
Clarke Wixon (cwixon) wrote :

Update:

Seems to result from some interaction between compiz and gksu.

If I use fusion-icon to switch to metacity as WM, even temporarily, then invoke gksu/gksudo, then there is no problem.

And I can switch right back to compiz.

Revision history for this message
Michael Flaig (mflaig) wrote :

Putting this bug to confirmed

Changed in gksu:
status: New → Confirmed
Revision history for this message
Michael Flaig (mflaig) wrote :

Please look into this - it is easily reproducable with an onscreen keyboard like onboard. Happens with jaunty as well.

I really hope for this bug to be fixed before the release of jaunty. As compiz is now default, Ubuntu is not usable on tablet pc's (slate) in the standard configuration.

Also the dialog is pretty ugly see attached screenshot. In window mode it should be a standard gtk dialog without transparency.

Revision history for this message
Gustavo Noronha Silva (kov) wrote :
  • a Edit (2 bytes, text/plain)

I believe lots of these problems are going to be solved by a version of gksu that is mainloop-based, and that uses the policykit framework for the actual authentication. How feasible is it for the Ubuntu guys to plan for a switch to gksu policykit at this point in time? http://live.gnome.org/gksu.

We can, of course, prepare work-arounds for this problem, with gksu disabling its keyboard-grabbing functionality if it detects that passwords as normal windows is turned on, but perhaps it's a good time to work on that switch. I'm planning to start working on it for Debian squeeze.

(launchpad really wants me to attach a file, it seems =))

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Does this option not work?

Revision history for this message
Michael Flaig (mflaig) wrote :

@Vadmin:
Of course it does, but it looks aweful see screenshot. Without this option you cannot even enter a password because gksu blocks the whole screen, so the onscreen keyboard as well.

But the real problem here is that gksu does not call the application right if a onscreen keyboard is used for entering the password. The called application just hangs and needs to be killed with xkill

If the application then is called again, no password dialog appears and the application starts and works as expected. But it is really anoying to start the application, xkill it and start it again every time. I'm currently sticking to calling everything that needs root privileges in the terminal with sudo which is almost as anoying on a tablet.

So it is high time this gets fixed...

@Gustavo:
I don't understand entirely what the problem has to do with keyboard grabbing, because the password seems to be accepted right, but the application doesn't get called right if the password is entered with an onscreen keyboard. Did you try it out?

As Clarke mentioned the problem does only happen with compiz on and I can confirm that. With metacity the gksu dialog looks like a gtk window and not like on the screenshot - and it works right! I checked the package source but couldn't find the compiz related code which makes the dialog transparent - where is it done and how can it be undone?

Is it already too late for gksu-policykit to enter jaunty?
If so I would really appreaciate a workaround

Revision history for this message
Clarke Wixon (cwixon) wrote :

I agree with Michael: If the problem is triggered by the composited password window, then forget the fanciness. I just want a gksu that works. I don't care if there's a titlebar.

For the record, I get the same effect Michael does in the screenshot (gksu_window_mode_compiz.png). The border and titlebar appear, but there is a transparent "moat" around the active portion of the password window. Not the intended effect, I am sure.

Because compiz is involved, I will also add that my machine has integrated Intel video (Mobile 915GMS Express chipset), and I'm using the distro-standard accelerated drivers for that. Don't know if that matters -- just another bit of data.

Revision history for this message
Michael Flaig (mflaig) wrote :

Could we please get into a discussion here so this issue won't be in jaunty final?
compized gksu is a show stopper for some people and ugly as well.
Do I need to adress this somewhere else, then let me know ... !?

Revision history for this message
Clarke Wixon (cwixon) wrote :

This bug continues to exist in 9.04, Jaunty final. Nothing has changed as far as I can tell.

It SURE would be nice to have this fixed, or at least to have the maintainer weigh in on when someone might take a look.

On my keyboardless system, I still end up having to power-down to get out of the UI freeze that this bug causes. Not always, but often enough.

Revision history for this message
marmuta (marmuta) wrote :

I remember having the gksu lockup issue too in Jaunty, but no more in 9.10 Karmic. The ugly transparent "moat" is still there though, see Bug #290714.

Revision history for this message
Tina Russell (tinarussell) wrote :

I’m having a very similar problem in Metacity, on Ubuntu 10.04 (though I had it in 9.10 as well), using normal gksu settings. Most of the time, when I run a program using gksu, it will accept my password and launch the program, but the program will immediately freeze. Then, I can kill the gksu process to get the program running again, although this has a small chance of crashing the system altogether (returning me to the GDM login prompt). Is this the same bug?

Revision history for this message
Clarke Wixon (cwixon) wrote :

I do NOT think this is a duplicate of bug #421660. Aside from having been reported seven months earlier, the symptoms are very different:

#421660 concerns the lack of accessibility of the gksu modal dialog in general, which can be worked around by enabling "password dialogs as normal windows" in the Assistive Technologies configuration (at least in 8.10 and 9.04 -- I have not checked since then).

#314250 (this bug) is primarily about crashes and hangs that occur AFTER using the OnBoard virtual keyboard to obtain elevated priveleges via gsku.

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.