<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi Dougie,</p>
<p>My simple script was from back in 2019 and did not work anymore.
I checked, and yes, I had to run that same line to get the debug
output.</p>
<p>Basically It's a wrapper script that launches digikam in debug
mode, and greps the lines that match new or removed items:</p>
<p><font face="monospace">#!/bin/bash<br>
export QT_LOGGING_RULES="digikam*=true"<br>
~/Applications/digiKam-7.8.0-20220729T111547-x86-64_7f3f87dbfb7a3c7c7354f5517a91c209.appimage
--database-directory ~/Imatges/digikam-proves >
digikamoutput.txt 2>&1 &<br>
<br>
tail -f digikamoutput.txt | grep -E 'Adding new item|Removed
items'</font></p>
<p>For the removed items, you will only get a number (the image id).
You can find the filename using sqlite3 and running a simple
query:</p>
<p><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">sqlite3 -line
~/path/to/digikam4.db 'select * from Images where id = 16328;'</span><br>
</span></p>
<p>Someday I'll make a nicer version. I hope it helps,</p>
<p>Marc<br>
</p>
<div class="moz-cite-prefix">El 26/7/22 a les 12:00, Dougie Nisbet
ha escrit:<br>
</div>
<blockquote type="cite" cite="mid:72f324da-f0c0-2fe4-2d79-3acec60d237a@katsura.uk">
<div class="moz-cite-prefix">On 23/07/2022 00:45, Marc Palaus
wrote:<br>
</div>
<blockquote type="cite" cite="mid:GV1P193MB211877C5E15DDBBE5097817DC8909@GV1P193MB2118.EURP193.PROD.OUTLOOK.COM">In
my case, I have a simple script that wraps digikam during
startup, reads the output log, and lists which files have been
added and which files have been removed during that launch.</blockquote>
<p>Out of interest, how do you log output? I'm using the appimage
and I don't know if that affects things. The only way I can find
of logging is to use the</p>
<pre tabindex="0"><code>export QT_LOGGING_RULES="digikam*=true"</code></pre>
<p>line as suggested for debugging and that's very verbose. I have
a separate bash script that processes all the image files
modified since the last time it was run and that works ok for
me. <br>
</p>
<p>Dougie<br>
<code></code></p>
</blockquote>
</body>
</html>