D26582: Kicker/RecentUsageModel: Allow to open smb:/ sftp:/ resources
Алексей Шилин
noreply at phabricator.kde.org
Sat Jan 11 15:01:31 GMT 2020
aleksejshilin added a comment.
I thought about using KRun::setShowScriptExecutionPrompt() for D10835 <https://phabricator.kde.org/D10835>, but "Recent Documents" include only those files which were opened, and doesn't include ones which were executed, so an execution prompt there would be totally unexpected by a user. KRun currently doesn't seem to have a way to force opening of executables - one can only prohibit running them with setRunExecutables(), in which case an error message is displayed. That's why I decided to go the way it is now.
I think, the best solution would be to add a new KRun::RunFlag (like OpenExecutables) which'd make it open executable files instead of running them, and then use it here.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D26582
To: meven, #plasma, broulik, aleksejshilin
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200111/f5c19399/attachment.html>
More information about the Plasma-devel
mailing list