https://bugs.kde.org/show_bug.cgi?id=459865

--- Comment #2 from Little Girl <littlerg...@gmail.com> ---
UPDATED:

SUMMARY
The "Issue (shell) commands" section of the
https://userbase.kde.org/Plasma/Krunner#Issue_.28shell.29_commands page in the
KDE UserBase Wiki says that we can run shell commands from Krunner. I've tested
it in an up-to-date copy of Kubuntu 22.04 LTS and have found that pressing the
Enter key after putting a shell command into Krunner doesn't always cause the
shell command to run. The failure can be consistently repeated by attempting to
run shell commands that are expected to produce output and comparing that with
the consistent success achieved by running shell commands that are not expected
to produce output.

STEPS TO REPRODUCE
01. Press alt+F2 to open Krunner.
02. Type this shell command that's not expected to produce output: kate
03. Press the Enter key.
04. Observe the expected result (and don't close Kate).
05. Type this shell command that's expected to produce output: which kate
06. Press the Enter key.
07. Observe the unexpected result.
08. Press alt+F2 to open Krunner again.
09. Type this shell command that's expected to produce output: which kate
10. Click the Konsole icon in Krunner's "Run which kate" search result.
11. Observe the expected result.
12. Press alt+F2 to open Krunner again.
13. Type this shell command that's not expected to produce output: pkill kate
14. Press the Enter key.
15. Observe the expected result.

OBSERVED RESULT
Step 04 result: Success: Krunner closes and Kate opens (successful press of the
Enter key).
Step 07 result: Failure: Krunner closes (unsuccessful press of the Enter key).
Step 11 result: Success: Krunner closes and Konsole opens with output
(successful click of the Konsole icon).
Step 15 result: Success: Krunner closes and Kate closes (successful press of
the Enter key).

EXPECTED RESULT
In step 07, Konsole should open with output when the Enter key is pressed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
As a result of testing this issue, I found the additional Krunner issues below
that may be related. I'm not sure if they belong here or in two separate
additional bug reports, so I'm leaving them here for now.
        * If you type which kate into Krunner and click the "Run which Kate"
entry in its search results, Krunner closes and nothing else happens.
        * If you use the Krunner textbox in the K menu instead of opening
Krunner with alt+F2, there's no way to run the which kate shell command because
there's no Konsole button in the search result and neither pressing the Enter
key nor clicking on the "Run which kate" search result do anything.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to