As per my discussion with joem a few weeks ago, gnome-session needs a schema defaults change. First off, auto_save_session needs to be turned off. This is horribly broken for apps that dont support it (they do all kinds of funky things). Its fine to let the user turn it on later, but since not all apps support it, I consider it broken out of the box. Second, gdm now supports the shutdown/restart stuff out of the box. Thus logout_prompt needs to be turned to on by default. It should be noted that in both of these cases my proposed changes are the upstream defaults and that currently we currently move away from upstream in both cases. Attached is an ebuild and a patch.
Created attachment 61037 [details, diff] gnome-session-2.10-schema_defaults.patch schema patch
Created attachment 61038 [details] gnome-session-2.10.0-r1.ebuild
Thanks Nathaniel. The revision ebuild and the modified patch are now in the tree.
Care to explain how this influences non-gdm setups ? I haven't found any reference in the changelogs on behavioral change that would validate this. And the opinion on auto_save is just that, sessions save is a sensble thing to have. Leonardop i know you like this feature too, but I'd like these quite extensive behavioral changes to be discussed first.
Non-GDM setups are asked a simple "Are you sure you want to log out?" GDM users are given the option to Shutdown/Restart/Logout. Regarding the auto_save option, this is considered broken by upstream and is disabled by default for that reason. With it enabled by default any applications that don't support the session stuff (a good number of programs, even gtk ones) act in wierd ways. We should either follow upstream or fix its broken behavior and submit that upstream. However, to enable it by default in its broken state is the absolute last thing we should do. In reality, we should try to keep our behavior as close to upstream as possible as that keeps us consistant with what people expect. These changes make us more consistant with upstream.