This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to close kdialog --passivepopup under 4.2?

Tags: None
(comma "," separated)
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS
I want to have an application post a notification that it's doing something using kdialog's passivepopup, then remove that notification when it's finished.

So the obvious way to do this is
Code: Select all
kdialog --passivepopup "my message"&
PID=$!
# do some stuff
kill $PID

But unfortunately for this scenario, it appears that unlike other kdialog options, this isn't viable. Because the process that's spawned evidently initiates the dialogue somewhere else then exits -
Code: Select all
ps -ef | grep $PID
shows that the process no longer exists.

So the question is, how can I remove the dialogue when I no longer need it? Preferably without having to delve into DBUS, which makes learning German grammar appear simple...


User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I believe Passive Popups are now sent through Plasma, at least in KDE 4.2. It appears that some D-Bus magic will be required.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS
bcooksley wrote:I believe Passive Popups are now sent through Plasma, at least in KDE 4.2. It appears that some D-Bus magic will be required.


I feared as much. Thanks for the confirmation.

Think I'll give up even thinking about the idea until DBUS actually gets documented.




Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient