<table><tr><td style="">broulik 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/D4923" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Taking for example the context menu code in FolderView:<br />
It does <tt style="background: #ebebeb; font-size: 13px;">KFileItem = m_dirModel->itemForIndex(index);</tt></p>

<p><tt style="background: #ebebeb; font-size: 13px;">item.localPath()</tt>: <tt style="background: #ebebeb; font-size: 13px;">""</tt><br />
<tt style="background: #ebebeb; font-size: 13px;">item.isLocalFile()</tt>: <tt style="background: #ebebeb; font-size: 13px;">false</tt><br />
<tt style="background: #ebebeb; font-size: 13px;">item.mostLocalUrl()</tt>: <tt style="background: #ebebeb; font-size: 13px;">QUrl("desktop:/foo")</tt><br />
<tt style="background: #ebebeb; font-size: 13px;">item.targetUrl():</tt> <tt style="background: #ebebeb; font-size: 13px;">QUrl("desktop:/foo")</tt><br />
<tt style="background: #ebebeb; font-size: 13px;">item.entry().stringValue(KIO::UDSEntry::UDS_LOCAL_PATH)</tt>: <tt style="background: #ebebeb; font-size: 13px;">""</tt></p>

<p>If you right click an item in desktop:/ the "Move to Trash" option will not be available, both in FolderView and Dolphin because it doesn't consider it a local file.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4923" rel="noreferrer">https://phabricator.kde.org/D4923</a></div></div><br /><div><strong>To: </strong>broulik, Plasma, hein, dfaure<br /><strong>Cc: </strong>anthonyfieroni, plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>