<table><tr><td style="">ngraham added a comment.
</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/D13415">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D13415#317064" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D13415#317064</a>, <a href="https://phabricator.kde.org/p/sharvey/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@sharvey</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Thanks for the investigation. I've been hoping someone else would lend a pair of eyes to this problem for ages.</p>

<p>When you change the icon in <tt style="background: #ebebeb; font-size: 13px;">user-manager</tt> repeatedly, are you prompted for a root password <strong>every time</strong>? On my system (Tumbleweed), there's a "grace period" where I don't get re-prompted and the icon doesn't change reliably.</p></div>
</blockquote>

<p>Right, there is a "grace period" of five minutes after every time you enter your password. This is built into PolicyKit, I believe. As far as I can tell from keeping a Dolphin window open showing the contents of <tt style="background: #ebebeb; font-size: 13px;">/var/lib/AccountsService/icons/</tt>, the icon immediately gets updated correctly on disk every single time I change it in <tt style="background: #ebebeb; font-size: 13px;">user-manager</tt>. I'm unable to fully confirm your assertion that the icon only reliably gets changed in Kickoff after being promped for a password. For me, it's a bit more subtle than that: the icon only reliably gets changed in Kickoff  the <strong>first</strong> time I change it in <tt style="background: #ebebeb; font-size: 13px;">user-manager</tt> that triggers a PolKit prompt after plasmashell has been started or restarted. I get a blank circle for all other circumstances:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Change icon in <tt style="background: #ebebeb; font-size: 13px;">user-manager</tt> after restarting plasmashell less than 5 minutes after the last change, such that there is no PolKit prompt</li>
<li class="remarkup-list-item">Change icon in <tt style="background: #ebebeb; font-size: 13px;">user-manager</tt> twice after restarting plasmashell, waiting more than 5 minutes each time so a PolKit prompt will be triggered; second update does not change Kickoff</li>
</ul>

<p>I can also confirm <a href="https://phabricator.kde.org/p/hein/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@hein</a>'s report that this patch is 100% reliable when <strong>not</strong> using <tt style="background: #ebebeb; font-size: 13px;">user-manager</tt>. I patched <tt style="background: #ebebeb; font-size: 13px;">KUser::faceIconPath()</tt> in <tt style="background: #ebebeb; font-size: 13px;">KCoreAddons</tt> to only ever return the <tt style="background: #ebebeb; font-size: 13px;">~/.face.icon</tt> path, instead of <tt style="background: #ebebeb; font-size: 13px;">/var/lib/AccountsService/icons/$username</tt>, and it becomes 100% reliable. I don't get the "Unsupported image format" error anymore, which is a little odd because the two images are identical:</p>

<p>$  (master) md5sum /var/lib/AccountsService/icons/dev ~/.face.icon <br />
28badcce926e3e4b1696e8bcac7b04d9  /var/lib/AccountsService/icons/dev<br />
28badcce926e3e4b1696e8bcac7b04d9  /home/dev/.face.icon</p>

<p>What a weird bug.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13415">https://phabricator.kde.org/D13415</a></div></div><br /><div><strong>To: </strong>sharvey, ngraham, davidedmundson, mart, apol, abetts<br /><strong>Cc: </strong>sefaeyeoglu, hein, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>