Bug 177139 - Log off dialog only shows default action (when default action is 'Power off...' or 'Restart....')
Summary: Log off dialog only shows default action (when default action is 'Power off.....
Status: RESOLVED FIXED
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
: 182982 183324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-07 14:39 UTC by Erik van 't Wout
Modified: 2009-05-31 19:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik van 't Wout 2008-12-07 14:39:59 UTC
Version:           4.1.80 (using Devel)
Compiler:          gcc-4.1.2 CFLAGS="-march=k8 -O2 -pipe", CXXFLAGS="-march=k8 -O2 -pipe"
OS:                Linux
Installed from:    Compiled sources

Using the beta1 gentoo packages:

When setting the default log-off action to either 'Power off the computer' of 'Restart the computer', the log-off dialog will only show this action. When set to 'Log off', all actions are shown but no timer appears.

Confirm Logout is checked.
Offer shutdown options is checked.

How to reproduce:

* rm -f ~/.kde/share/config/ksmserverrc
* System Settings -> Advanced -> Session Management
  (set above mentioned settings)
* Try to log-out
  (in my case using the Lancelot menu)

(I don't know if .kde is still updated by KDE these days, however it is pointing to the right directory on my setup)

Expected behaviour:

The log-out dialog should offer 3 options and start a 30 second timer which will use the 'Power off...' action.
Comment 1 Dario Andres 2009-02-05 22:39:06 UTC
*** Bug 183324 has been marked as a duplicate of this bug. ***
Comment 2 Mauro 2009-03-06 09:44:53 UTC
Nothing yet?
Comment 3 Oswald Buddenhagen 2009-05-30 19:46:49 UTC
*** Bug 182982 has been marked as a duplicate of this bug. ***
Comment 4 Oswald Buddenhagen 2009-05-31 19:40:42 UTC
SVN commit 976028 by ossi:

try to fix up the shutdown stuff

first of all, deprecate the braindead ShutdownTypeLogout again and alias
it to ShutdownTypeNone internally, as the latter means "logout only"
(that enum refers to the machine's state, not the session's).

unify the semantics of ksmserver's d-bus interface to interpret a
shutdown request with a pre-selected shutdown type as needing only a
confirmation, not a full choice. this is a behavior break from the
original implementation, but that actually happened in 4.2 already - i'm
just fixing it.

all "generic" logout actions (alt-ctrl-del, lock_logout applet, plasma
desktop menu) now always pop up the full shutdown dialog, irrespective
of the "confirm shutdown" option.
"specialized" logout actions (like in kickoff's "leave" menu) continue
to respect the "confirm shutdown" option. if the confirmation is
enabled, the reduced shutdown dialog will appear as before (only some
implementation details changed).

BUG: 152110
BUG: 177139
BUG: 182466

 M  +1 -1      krunner/krunnerapp.cpp  
 M  +9 -2      ksmserver/shutdown.cpp  
 M  +64 -69    ksmserver/shutdowndlg.cpp  
 M  +3 -2      ksmserver/shutdowndlg.h  
 M  +4 -6      ksmserver/tests/test.cpp  
 M  +4 -2      libs/kworkspace/kworkspace.h  
 M  +1 -3      plasma/applets/kickoff/core/itemhandlers.cpp  
 M  +1 -1      plasma/applets/lock_logout/lockout.cpp  
 M  +1 -1      plasma/containments/desktop/desktop.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=976028