Start xclipboard sync process from build dir if available
ClosedPublic

Authored by graesslin on Nov 7 2018, 11:51 AM.

Details

Summary

The xclipboard sync test times out on build.kde.org as KWin is not
installed prior to running the tests. This is due to KWin not finding
the executable for the clipboard sync helper.

This change looks whether the binary exists in the same directory as
KWin's executable. If it exists it is started instead of the hardcoded
path in libexec.

Test Plan

Run the test and verified the correct binary is loaded

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin created this revision.Nov 7 2018, 11:51 AM
Restricted Application added a project: KWin. · View Herald TranscriptNov 7 2018, 11:51 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
graesslin requested review of this revision.Nov 7 2018, 11:51 AM
zzag accepted this revision.Nov 7 2018, 12:34 PM
zzag added a subscriber: zzag.

Maybe it would be worth to leave a comment why we search for org_kde_kwin_xclipboard_syncer in the directory that contains kwin's executable.

This revision is now accepted and ready to land.Nov 7 2018, 12:34 PM
This revision was automatically updated to reflect the committed changes.

Damn, it looks like it's still timing out on build.kde.org