KWrite produces annoying console output (see Bug 173760) so I wrap it in a shell script as follows: #!/bin/bash /usr/bin/kwrite "$@" >&/dev/null & This shell script works fine when I launch it from a terminal. However, if I use Plasma to run it with Alt+F2, the kwrite launches but I also get the following error dialog: Sorry - Run Command Interface KDEInit could not launch '/home/miller/bin/kwrite' Possibly this is related to Bug 343673, which was supposedly fixed in KDE 5 and backported to KDE 4. Note, however, that my problem is slightly different: I get the error only when I use Alt+F2 to run a shell script which invokes kwrite. (And even then, the problem occurs only when I let KDE find the script on my PATH; if I instead type ~/bin/kwrite, the error doesn't occur.) I am using KDE 4.14.3. Reproducible: Always Steps to Reproduce: 1. Create a shell script ~/bin/kwrite which launches kwrite. Make sure ~/bin is on the PATH. 2. Press Alt+F2, type "kwrite", and press enter. Actual Results: 3. Error dialog appears which says, "KDEInit could not launch '/home/miller/bin/kwrite'" 4. KWrite is launched. Expected Results: Step 3 above should not happen.
Problem still exists in KDE 4.14.18.
Hello! This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug has already been resolved in Plasma 5. Accordingly, we hope you understand why we must close this bug report. If the issue described here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging Thanks for your understanding! Nate Graham
I tested this in Plasma 5 and the problem is not reproducible there.