Find qdbus command correctly

Authored by ngraham on Dec 11 2019, 12:49 PM.

Description

Find qdbus command correctly

Summary:
Spectacle's Desktop file assumes that qdbus is in $PATH. However this is not
guaranteed; the command lives in the Qt binaries dir which is not typically in $PATH,
and distros typically create symlinks with different names in /usr/bin, but not all
create a second compatibility symlink at /usr/bin/qdbus that points to the version
for the current Qt version.

Therefore, we should find the command in the Qt binaries dir itself rather than relying
on these compatibility symlinks.

BUG: 413007
FIXED-IN: 20.04.0

Test Plan:

  • Delete the /usr/bin/qdbus symlink, if you have one
  • Compile and install Spectacle
  • Hit PrintScreen
  • See that Spectacle still opens

Reviewers: davidedmundson, Spectacle, sitter

Reviewed By: sitter

Subscribers: sitter, Plasma, rdieter, kossebau, fvogt, davidre

Tags: Spectacle

Differential Revision: https://phabricator.kde.org/D25883

Details

Committed
ngrahamFeb 6 2020, 6:18 PM
Reviewer
sitter
Differential Revision
D25883: Find qdbus command correctly
Parents
R166:3d2447435d3e: Set the current capture mode index at the end of the constructor of KSWidget
Branches
Unknown
Tags
Unknown