kio: correct arguments passed to konsole executable

fixes starting programs that require terminal from Plasma menu for
example

%i no longer expands to "--icon '%i'", I changed it to be so some time ago
so that different arguments can be passed along with %i to programs if they
support icon option but with different option name

%m is deprecated, for reference:
https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-14 22:51:54 +03:00
parent decb354a0d
commit 368cfcd2f4

View file

@ -448,7 +448,7 @@ QStringList KRun::processDesktopExec(const KService &_service, const KUrl::List&
if (!_service.path().isEmpty()) { if (!_service.path().isEmpty()) {
terminal += " --workdir " + KShell::quoteArg(_service.path()); terminal += " --workdir " + KShell::quoteArg(_service.path());
} }
terminal += " -caption=%c %i %m"; terminal += " --icon '%i' --caption '%c'";
} }
terminal += ' '; terminal += ' ';
terminal += _service.terminalOptions(); terminal += _service.terminalOptions();