LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2012, 04:28 PM   #1
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
qdbus cancel handling


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.

Last edited by Teufel; 05-21-2012 at 04:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qdbus + Rhythmbox wwws444 Linux - Software 0 09-27-2010 05:33 AM
Cancel the copy chili811 Linux - Newbie 2 03-18-2009 11:35 AM
How to install qdbus utility? PaulFXH Linux - Software 0 05-15-2008 11:21 AM
How do I cancel my id? dickd LQ Suggestions & Feedback 7 10-08-2006 10:50 AM
cancel shutdown kc8tbe Linux - General 3 06-02-2003 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration