https://bugs.kde.org/show_bug.cgi?id=415567
Bug ID: 415567
Summary: "Could not find the program" dialog when program is
found but malformed
Product: frameworks-kio
Version: 5.65.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
I discovered this when one of my programs that I have a shortcut to in Kickoff
needed to be rebuilt to link with a new version of a library.
Running the executable directly resulted in an error code of 127:
error while loading shared libraries: libMagickWand-7.Q16HDRI.so.6: cannot
open shared object file: No such file or directory
When attempting to launch in Kickoff I got a popup with the message "Could not
find the program", even though that wasn't the error.
Other variants I tried were to replace the executable with an empty file and to
remove the executable bit from the executable.
STEPS TO REPRODUCE
1. Create a shortcut to an executable in Kickoff (or Krunner, etc.)
2. Make the executable somehow throw an error instead of loading. For example,
use `sudo chmod -x <file>`.
3. Try to launch the program through the shortcut.
OBSERVED RESULT
"Could not find the program" dialog pops up.
EXPECTED RESULT
A pop up dialog that states the actual reason why the program did not launch.
SOFTWARE VERSIONS
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0
ADDITIONAL INFORMATION
The message is produced in kio/kio/krun.cpp in
KProcessRunner::slotProcessExited.
It would be nice if the exact error message/code was passed through to give the
user the precise information. Perhaps it could be hidden, but expandable in an
"Additional Information" field?
--
You are receiving this mail because:
You are watching all bug changes.