Hi,

> On Sunday, May 12, 2013 20:07:52 Dominik George wrote:
> > We already limited the botification number to one event per minute,
> > however, the code still freezes KDE.
> 
> by "KDE" i assume you mean the plasma-desktop process (and that other 
> application windows remain responsive; alt-tab'ing still works, etc)

actually not - the whole desktop freezes, including any running
applications.

> > Attached is the plasmoid code that crashes, removing the comment sign at
> > the beginning of line 317 introduces notifications and the freeze.
> 
> i'm not sure why, but you are using the org.kde.KNotify dbus interface 
> directly via QtDBus .. and doing so with a blocking call.

Because this way was the only one I found. It is documented in a ton of
places.

> you must never call knotify synchronously in plasma-desktop (though it is not 
> a good idea to do so anywhere). make it an async dbus call and things should 
> be fine.
> 
> better yet, use the KNotification API as it does things properly and means 
> you 
> aren't using a DBus API directly.

Thanks for bringing the KNotification keyword to my attention. That
really helped at finding naother solution. I kept researching KNotify
which did not yield any other results than the DBus call.

Thanks,
Nik

-- 
* mirabilos is handling my post-1990 smartphone *
<mirabilos> Aaah, it vibrates! Wherefore art thou, demonic device??

PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17  FD26 B79A 3C16 A0C4 F296

Attachment: signature.asc
Description: Digital signature

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to