GNOME Bugzilla – Bug 550211
Add --logout-dialog and --shutdown-dialog to gnome-session-save
Last modified: 2008-09-01 16:49:54 UTC
We have a --kill option for gnome-session-save, but because of history and because we don't want to break compatibility, it's hard to know exactly how it works with --gui and with --silent? What happens if you just do --kill? Does it show a dialog or not? I propose to add --logout-dialog and --shutdown-dialog which are pretty clear.
Created attachment 117764 [details] [review] Implement the two new options We could share more code between logout_session() and do_shutdown_dialog() -- trivial to do so, but I wanted feedback first. (also, I'd rename logout_session() to do_logout()) There are new strings. I'll likely put this in openSUSE. Is this something we can commit in 2.24?
Yeah, I've always disliked that ambiguity too. Maybe we should add a --force-logout option too and completely deprecate --kill? This looks good to me.
Well, would --force-logout just not show the logout dialog? Or would it also ignore the inhibitors? Maybe we should add --logout (does not ignore inhibitors) and --force-logout (ignore inhibitors). Need to think a bit about it. Just found out that I should update the man page too. It will be a good place to add the deprecation note.
I've added --logout and --force-logout, cleaned up the code and updated the man page.