[PATCH] KProcessRunner: Fix launching actions without executable
authorBalló György <ballogyor@gmail.com>
Fri, 4 Apr 2025 06:08:31 +0000 (08:08 +0200)
committerAurélien COUDERC <coucouf@debian.org>
Sun, 8 Jun 2025 12:42:29 +0000 (14:42 +0200)
commit9e6b299dede3d664d0f4e2255e8fb14743f8c0e8
treebe5170b43a48f5d3f765751781c1c019fccdf086
parentca4fd30bd068f9380b058c310e9da8f088a80609
[PATCH] KProcessRunner: Fix launching actions without executable

If D-Bus activation is possible, it's not needed to have an executable,
since everything is done via D-Bus. Therefore look for the matching action
name instead of the exec value when launching an action. The specification
allows to omit the "Exec" key if "DBusActivatable" is true.

Most applications specify the Exec parameter for compatibility reasons, but
if the action's "Exec" line got removed from a D-Bus activatable desktop
file, then KIO just activates the application rather than calling the
requested action. This change fixes that issue.

Gbp-Pq: Name upstream_31806c51_KProcessRunner-Fix-launching-actions-without-executable.patch
src/gui/applicationlauncherjob.cpp
src/gui/kprocessrunner.cpp
src/gui/kprocessrunner_p.h