RequestReboot() causes dialog to appear briefly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-session (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Binary package hint: gnome-session
I recently converted ubiquity to use a D-Bus call to gnome-session rather than the previous excessively hacky C code to provoke a reboot. For reference, the relevant code is shown here:
This works fine, except that if you watch closely you can see a dialog appearing briefly before it disappears again and the session exits. Could this be changed to avoid the dialog being shown when the reboot isn't interactive?
ProblemType: Bug
Architecture: i386
Date: Wed Jun 24 12:19:49 2009
DistroRelease: Ubuntu 9.10
Package: gnome-session 2.26.1-1ubuntu1
ProcEnviron:
LC_COLLATE=C
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: gnome-session
Uname: Linux 2.6.30-9-generic i686
Changed in gnome-session (Ubuntu): | |
status: | Incomplete → New |
Is this the inhibit dialog which appears? RequestReboot() is non-interactive
in the sense that it bypasses the session dialog, but still triggers all the
usual session teardown stuff (asking clients if it is ok to shutdown, to
give them a chance to block etc), so you may still see an inhibit dialog,
and some clients may ask if you want to save work. This is the intended
behavior, but I suppose the DBus API could be expanded to provide a truly
non-interactive option which just stops the session. However, that can
already be achieved by calling Stop() on consolekit.
It might be worth working out which client inhibits though, so that can be
fixed instead.
On Jun 24, 2009 1:05 PM, "Colin Watson" <email address hidden> wrote:
** Attachment added: "Dependencies.txt" launchpadlibrar ian.net/ 28277290/ Dependencies. txt
http://
-- RequestReboot() causes dialog to appear briefly /bugs.launchpad .net/bugs/ 391559 You rece...
https:/