<div dir="ltr">yes, the in fact the event notifier is a string + metadata (optional).<div><br></div><div>It's possible to pass something like "File %1 save completed" for ex, with %1 the file name as argument. In background, QString container is used.</div><div><br></div><div>The code relevant for image editor is here :</div><div><br></div><div><a href="https://cgit.kde.org/digikam.git/tree/utilities/imageeditor/main/imagewindow.cpp#n964">https://cgit.kde.org/digikam.git/tree/utilities/imageeditor/main/imagewindow.cpp#n964</a><br></div><div><br></div><div>and here :</div><div><br></div><div><a href="https://cgit.kde.org/digikam.git/tree/utilities/imageeditor/main/imagewindow.cpp#n1062">https://cgit.kde.org/digikam.git/tree/utilities/imageeditor/main/imagewindow.cpp#n1062</a><br></div><div><br></div><div><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:13.3333px"><code>DNotificationWrapper class is used and it re-route the notification to right object from the desktop depending of operating systm.</code></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:13.3333px"><code><br></code></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px"><code><font color="#000000"><span style="font-size:13.3333px"><a href="https://cgit.kde.org/digikam.git/tree/libs/notificationmanager/dnotificationwrapper.h">https://cgit.kde.org/digikam.git/tree/libs/notificationmanager/dnotificationwrapper.h</a><br></span></font></code></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px"><code><font color="#000000"><span style="font-size:13.3333px"><br></span></font></code></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px"><code><font color="#000000"><span style="font-size:13.3333px">So, everywhere in DK, this class is used to notify an event. Patching all call can be easy to do.</span></font></code></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px"><code><font color="#000000"><span style="font-size:13.3333px"><br></span></font></code></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px"><code><font color="#000000"><span style="font-size:13.3333px">Gilles Caulier</span></font></code></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-13 16:24 GMT+02:00 Dmitri Popov <span dir="ltr"><<a href="mailto:lazylegs@gmail.com" target="_blank">lazylegs@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
digiKam makes it possible to assign commands to notifications. For<br>
example, I can run a command on the "Save file complete" notification.<br>
But is it possible to pass the name of the file to the command?<br>
<br>
Thanks,<br>
Dmitri<br>
</blockquote></div><br></div>