From 368cfcd2f4212643615089e7e12be1b7acb4d202 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 14 Oct 2022 22:51:54 +0300 Subject: [PATCH] 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 --- kio/kio/krun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kio/kio/krun.cpp b/kio/kio/krun.cpp index 3d14fa48..1b0d8501 100644 --- a/kio/kio/krun.cpp +++ b/kio/kio/krun.cpp @@ -448,7 +448,7 @@ QStringList KRun::processDesktopExec(const KService &_service, const KUrl::List& if (!_service.path().isEmpty()) { terminal += " --workdir " + KShell::quoteArg(_service.path()); } - terminal += " -caption=%c %i %m"; + terminal += " --icon '%i' --caption '%c'"; } terminal += ' '; terminal += _service.terminalOptions();