Bug 345175 - Launching non-existent executable leads to misleading/non-userfriendly result/message
Summary: Launching non-existent executable leads to misleading/non-userfriendly result...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kinit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-15 12:03 UTC by Elias Probst
Modified: 2019-07-20 13:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2015-03-15 12:03:52 UTC
Running KF5/Plasma 5 from current git + Qt 5.4.1.

When the executable of a *.desktop file can't be found within $PATH, the resulting error message is misleading and not userfriendly.
Applications like krunner, Dolphin, Plasma etc. will just show the raw error message which is a bit of a UX issue.

e.g here 'skype' is located in /opt/bin/skype, but until I added it /opt/bin/ wasn't part of my $PATH.
When trying to launch 'Skype' via its *.desktop file through krunner, kickoff etc. just resulted in a error dialog showing:

KDEInit could not launch 'skype':
Could not open library '/usr/lib64/libkdeinit5_skype'.
Cannot load library /usr/lib64/libkdeinit5_skype: (/usr/lib64/libkdeinit5_skype.so: cannot open shared object file: No such file or directory)

IMHO there are 2 things to be done here:
- when a *.desktop file with Type=Application is launched, kdeinit shouldn't try to load a library
- the error handling between kdeinit's clients and kdeinit itself should be improved to generate more meaningful error messages (e.g. "The application 'skype' could not be located and executed. Please check your $PATH variable.").

As I'm missing sufficient knowledge of kinit's internal workings, I might be wrong with some of the points above. Just wanted to outline the experience from a user's POV.
Comment 1 David Faure 2019-07-20 13:57:45 UTC
Thanks for the report.
This no longer happens because plasma/krunner don't go through kdeinit anymore.