@pparent said in Send notification locally from QT/C++/QML App.:
@lduboeuf
Thank you but what I don't understand, is the even being unconfined I cannot get it to work by calling Postal via dbus, even when copying dekko code. It only kind of works with libnotify, but does not make its way into the system tray.
I honestly think the notification system should be way easier for app developers, it's a basic feature.
Yes indeed, but popup notification is not the same than indicator messge. the former is based on the freedesktop spec the other is a custom recipe.
I don't know why it would not work by being unconfined, maybe something to do with the appid ?
This CLI method seems to do the job
gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/dekko2_2edekkoproject --method com.lomiri.Postal.Post dekko2.dekkoproject_dekko '"{"message": "foobar", "notification":{"card": {"summary": "yes", "body": "hello", "popup": true, "persist": true}}}"'
I guess that to work, app need some configs via files like in dekko