KRun::run(exec, urls) is somewhere in between the two jobs.
Since we know the name of the desktop file, we might as well use ApplicationLauncherJob here.
Otherwise we would probably need a bit of KShell escaping to turn a QUrl into a command-line arg.
Details
Details
With filelight installed, the button in the properties dialog works.
With the .desktop file still installed but the executable renamed, an error message pops up as expected.
Diff Detail
Diff Detail
- Repository
- R241 KIO
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 24190 Build 24208: arc lint + arc unit
src/gui/applicationlauncherjob.h | ||
---|---|---|
50 | Done in https://commits.kde.org/kio/01a4b70803d5bc9144a7ca7aec12081b4356c638 | |
src/widgets/kpropertiesdialog.cpp | ||
1458 | If you want. Makes no difference, the actual start of a KJob is always delayed. |