plugin but with actions suppressed

Authored by brute4s99 on Jun 4 2019, 7:50 PM.

Description

plugin but with actions suppressed

Details

Committed
brute4s99Jun 4 2019, 7:50 PM
Parents
R289:b1100e3370a6: super unstable, doesn't work beyond one notification o.O
Branches
Unknown
Tags
Unknown
vonreth added a subscriber: vonreth.Jun 4 2019, 9:36 PM

Some ideas, if I sound grumpy... I'm tired, good night :)

/src/notifybysnore.cpp
71

use a local variable

81

Here I guess the life time of the lambda should be the existance of the notification, so pls try

QObject::connect(server, &QLocalServer::newConnection, notification, [this,notification]() {
105

use org.kde.applicationName, just to be sure. (unrelated to the crash)

118

instead of waiting I guess you could connect to error or something similar to detect a problem without blocking