This isn't an indicator-session bug. Unity's popup gives focus to the
Shutdown button even when the client specifies Reboot.

>From UnityCore/GnomeSessionManagerImpl.h:

>  enum class Action : unsigned  {
>    LOGOUT = 0,
>   SHUTDOWN,
>   REBOOT,
>   NONE
> };

So calling org.gnome.SessionManager.EndSessionDialog.Open with an action
type of '2' to correspond with the REBOOT enum should give focus to the
dialog's Restart button, but doesn't. Repeatable by invoking from
outside indicator-session w/dbus-send:

> dbus-send --print-reply --dest="org.gnome.Shell"
/org/gnome/SessionManager/EndSessionDialog
org.gnome.SessionManager.EndSessionDialog.Open uint32:2 uint32:0
uint32:60 array:objpath:

** Changed in: indicator-session
       Status: Confirmed => Invalid

** Summary changed:

- Selecting power-cog > restart lands highlight on "shutdown"
+ Calling org.gnome.SessionManager.EndSessionDialog.Open() with an action of 
'Restart' opens the dialog with focus incorrectly on the 'Shutdown' button

** Summary changed:

- Calling org.gnome.SessionManager.EndSessionDialog.Open() with an action of 
'Restart' opens the dialog with focus incorrectly on the 'Shutdown' button
+ Calling EndSessionDialog.Open(Restart) opens the dialog with a focused 
'Shutdown' button

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1250262

Title:
  Calling EndSessionDialog.Open(Restart) opens the dialog with a focused
  'Shutdown' button

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-session/+bug/1250262/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to