feverfew added a comment.
With a brief look the ideal scenario is to be able to use `DesktopExecParser::resultingArguments`, or a class that calls it `KRun`. That should do the conversion. I'm just not sure if you have the information required to use it. See D23384 <https://phabricator.kde.org/D23384> REPOSITORY R838 Flatpak Support: KDE Portal for XDG Desktop REVISION DETAIL https://phabricator.kde.org/D27643 To: jgrulich, aacid, feverfew, fvogt Cc: apol, ngraham, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, ahiemstra, mart