Re: [gnome-flashback] Logout dialog with gnome-session>=3.10



Hi,

I have created new package which includes session files, background drawing and end session dialog:
https://git.gnome.org/browse/gnome-flashback

Do you have time to test it? At least for me all options now works - logout, shutdown and reboot. If you still have problem with shutdown/reboot then enable debug info for session and check if gnome-session is using systemd or consolekit for session tracking.

When I tested in jhbuild gnome-session was built without systemd support and because of that shutdown and reboot did not work for me.



On Sat, Jun 7, 2014 at 10:24 PM, Charles Bos <charlesbos1 gmail com> wrote:
I just did some very quick testing of this in Arch. Like you, I found that the logout dialog worked. The poweroff dialog made the panel freeze. I'll do some more testing later.


On Sat, Jun 7, 2014 at 5:12 PM, Alberts Muktupāvels <alberts muktupavels gmail com> wrote:
I uploaded new 'end-session-dialog' branch for gnome-panel.

It can be used for testing. Logout button did work for me, but power off option and applet was not available to me. Seems that for same reason session manager says that shutdown is not available:
https://git.gnome.org/browse/gnome-panel/tree/gnome-panel/libpanel-util/panel-session-manager.c#n258

Branch needs some extra work. I commented out some part of add_inhibitor function, this needs to be fixed. Maybe someone is ready to finish this? Also dialog .ui file needs to be updated for gtk+ 3.



On Sat, Jun 7, 2014 at 12:54 PM, Balló György <ballogyor gmail com> wrote:
Hi,

2014-06-07 7:51 GMT+02:00 Alberts Muktupāvels <alberts muktupavels gmail com>:
> Hi,
>
> can you try explain more your idea?
>
> I did manage to create application which shows this dialog, but it does not
> work like you think.
> 1) Launched created application on ubuntu 14.10 which use gnome-session <
> 3.10. From other terminal sending dbus-send command I was able to get
> dialog. Clicking on button did work.
> 2) Installed application in jhbuild session which use gnome-session > 3.10.
> Using dbus-send I got dialog, but clicking on logout, power off buttons
> still does nothing.
>
> Note that this was fast try and I might not done all things that was needed.
> I will look at this again when I will have more time, maybe this evening.
>
> Why you are suggesting to change to 'org.gnome.Shell'. Would not that mean
> that we depend on gnome-shell? I think our session should not.

No, it just needed for providing the same D-Bus name as gnome-shell.
I'm not sure about that, but gnome-session explicitly tries to connect
to 'org.gnome.Shell' here:
https://git.gnome.org/browse/gnome-session/tree/gnome-session/gsm-shell.c#n587

So I think the process is the following:

1. gnome-session-end-dialog provides the same D-Bus interface as gnome-shell.

2. When the user tries to open the logout dialog, gnome-session
connects to that interface, listens to its signals, and open the
dialog via the 'Open()' D-Bus method.

3. gnome-session-end-dialog displays the logout dialog, waiting for user action.

4. When the user hit the appropriate button on the dialog,
gnome-session-end-dialog sends back the signal to gnome-session
(Closed, Canceled, ConfirmedLogout, ConfirmedShutdown,
ConfirmedReboot)

5. gnome-session listens to these signals, and do the appropriate action.

The whole process is handled in gsm-shell.c:
https://git.gnome.org/browse/gnome-session/tree/gnome-session/gsm-shell.c

--
György Balló
_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list



--
Alberts Muktupāvels

_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list



_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list




--
Alberts Muktupāvels


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]