<table><tr><td style="">jgrulich 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/D22482">View Revision</a></tr></table><br /><div><div><p>The FileChooser portal will never ask for directories, it's currently not possible to expose a directory to the sandbox environment. If you look at [1], you can see it always uses native file dialog in case of directories, which means native file dialog will be opened inside the sandbox, not through the portal.</p>
<p>[1] - <a href="https://code.woboq.org/qt5/qtbase/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportalfiledialog.cpp.html#_ZN27QXdgDesktopPortalFileDialog4execEv" class="remarkup-link" target="_blank" rel="noreferrer">https://code.woboq.org/qt5/qtbase/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportalfiledialog.cpp.html#_ZN27QXdgDesktopPortalFileDialog4execEv</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R838 Flatpak Support: KDE Portal for XDG Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22482">https://phabricator.kde.org/D22482</a></div></div><br /><div><strong>To: </strong>volkov, apol, jgrulich<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>