<table><tr><td style="">ahmadsamir 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/D28079">View Revision</a></tr></table><br /><div><div><p>For background see: <a href="https://bugs.kde.org/show_bug.cgi?id=414742" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=414742</a></p>
<p>I may be wrong, but personally I think QMimeDatabase is acting sensibly by not allowing to remove the "main" glob pattern of a mimetype.</p>
<p>Also IIUC it seems other tools are sort of doing the same, e.g. gio (see the bug report for some testing I posted there).</p>
<p>So, either this diff makes sense, or someone will have to put his upstream Qt hat on and change QMimeDatabase :p; I dug into the git history upstream, and IIRC it seems QMimeDatabase prepends the main glob pattern since 2012 (from before it was merged into qtbase).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R126 KDE CLI Utilities</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28079">https://phabricator.kde.org/D28079</a></div></div><br /><div><strong>To: </strong>ahmadsamir, Plasma, dfaure, davidedmundson, apol<br /><strong>Cc: </strong>kde-frameworks-devel, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>