<table><tr><td style="">sitter 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/D28679">View Revision</a></tr></table><br /><div><div><p>Hm. So, this is a bit complicated I've noticed.</p>
<p>Let's consider the following cases:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">desktop:</tt> is not a local file but can set and read dir icons without penalty</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">camera:</tt> is not a local file AND <tt style="background: #ebebeb; font-size: 13px;">Class=:local</tt> BUT (I think?) cannot set dir icons as it is <tt style="background: #ebebeb; font-size: 13px;">writing=false</tt> (in practice the slave seems to list dirs with <tt style="background: #ebebeb; font-size: 13px;">rwx</tt> though, so I'm not sure, may be a slave bug)</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">smb:</tt> is not a local file AND not local class nor do we want to have icons for it</li>
</ul>
<p>With that in mind I believe Kai's approach would be more correct here as otherwise the desktop: case doesn't work. Perhaps it'd make also sense to check <tt style="background: #ebebeb; font-size: 13px;">!KProtocolInfo::supportsWriting</tt>. The way I see it if a slave implementation doesn't support writing... then it doesn't support writing. The directory being writable or not wouldn't change the lack of write support in the slave.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28679">https://phabricator.kde.org/D28679</a></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure, sitter<br /><strong>Cc: </strong>broulik, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>