<table><tr><td style="">nicolasfella created this revision.<br />nicolasfella added a project: KDE Connect.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7146" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>If I go to /tmp/kdeconnect I get to see which friends messaged me. This is wrong because this is personal data:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">some people encrypt their home folder because of such privacy concerns</li>
<li class="remarkup-list-item">on shared systems one would get to see their each other's acquaintances</li>
</ul></blockquote>

<p>This would be an easy fix. However, we should consider different approaches. Here are my thoughts on this:</p>

<p>Using this revision would likely be Linux- (or Unix-) only.</p>

<p>QT doc says about QDir::temp():</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>On Unix/Linux systems this is the path in the TMPDIR environment variable or /tmp if TMPDIR is not defined. On Windows this is usually the path in the TEMP or TMP environment variable.</p></blockquote>

<p>This would portable, but we have no control over which directory is chosen and we don't like the default. This would give the user the choice, but I don't think many will care.</p>

<p>I thought about storing the icons in memory only when I worked on the notification icons the first time, but I could not make it work because the only way I managed to access the payload was through a FiletransferJob. We could delete the files right after loading them to memory, but it might be useful one day to have them on the disk.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Every plugin has a storage directory available to it. Maybe we can use that?</p></blockquote>

<p><a href="https://phabricator.kde.org/p/albertvaka/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;" rel="noreferrer">@albertvaka</a> Can you give me an example on how to access it?</p>

<p>What do you guys think about this?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R224 KDE Connect</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7146" rel="noreferrer">https://phabricator.kde.org/D7146</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/notifications/notification.cpp</div></div></div><br /><div><strong>To: </strong>nicolasfella, KDE Connect<br /><strong>Cc: </strong>KDE Connect, albertvaka, tfella, aboudhar, seebauer, progwolff, MayeulC, menasshock, ach, apol, hkaelberer<br /></div>