Hi all!
I have a simple logout launcher button at the tray. This button launches logout dialog with 3 options (logout, reboot and shutdown) and cancel button.
Here Logout.desktop file content:
Code:
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=killall conky && qdbus org.kde.ksmserver /KSMServer logout -1 -1 0
GenericName[en_US]=Logout
GenericName=Logout
Icon=/home/teufel/icons/inward_black_shutdown.png
MimeType=
Name[en_US]=Logout
Name=Logout
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=none
X-KDE-SubstituteUID=false
X-KDE-Username=
Button clicking kills conky and executes qdbus org.kde.ksmserver /KSMServer logout -1 -1 0 (this command shows dialog)
Is it possible to determine if cancel button in logout dialog was pressed?
Thanks in advance.