Added GetSession(), for gnome-shell.

It seems Inhibit() is required as well - it still crashes.