Summary: | "Could not find the program" dialog when program is found but malformed | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Alex <agrambot> |
Component: | general | Assignee: | David Faure <faure> |
Status: | CONFIRMED --- | ||
Severity: | minor | CC: | a.samirh78, kdelibs-bugs, nate, samoht0-bugzilla |
Priority: | NOR | ||
Version: | 5.65.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alex
2019-12-25 23:52:32 UTC
Git commit 05cbbf06384bae0cad8de19d659864c0f8dbd651 by David Faure. Committed on 27/04/2020 at 21:22. Pushed by dfaure into branch 'master'. Detect executables without +x permission in $PATH to improve error message Summary: QStandardPaths::findExecutable will not return to us a non-executable binary. So implement our own iteration over $PATH to detect such a case. Note: this doesn't handle the case where PATH isn't set at all (QStandardPaths implements a fallback) nor do we implement this for Windows (where chmod -x doesn't really exist as is). I think this is fine, in the worst case the user will get the other error message, program not found. Test Plan: 'sudo chmod a-x /usr/bin/gwenview' then try opening a picture with gwenview from e.g. dolphin, see the error message Reviewers: ahmadsamir Reviewed By: ahmadsamir Subscribers: ngraham, meven, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D29170 M +16 -5 autotests/applicationlauncherjobtest.cpp M +11 -8 src/core/desktopexecparser.cpp M +42 -2 src/gui/kprocessrunner.cpp https://commits.kde.org/kio/05cbbf06384bae0cad8de19d659864c0f8dbd651 (In reply to David Faure from comment #2) > Differential Revision: https://phabricator.kde.org/D29170 > > M +16 -5 autotests/applicationlauncherjobtest.cpp > M +11 -8 src/core/desktopexecparser.cpp > M +42 -2 src/gui/kprocessrunner.cpp > > https://commits.kde.org/kio/05cbbf06384bae0cad8de19d659864c0f8dbd651 The commit seems to cause a regression for me: https://bugs.kde.org/show_bug.cgi?id=422270 |