Fixed error message not always appearing when failing to launch qdbusviewer

Review Request #120080 - Created Sept. 6, 2014 and updated

Information
Mathias Tillman
khotkeys
master
329094
Reviewers
kde-workspace

The message that qdbusviewer failed to run doesn't always show. This happens when qtchooser is installed, but none of the KDE4 or KDE5 qdbusviewers are installed, causing qtchooser to end with an error code of 1 and printing an error that it can't find qdbusviewer. This patch works around that by using KProcess::execute which returns an error code as opposed to just a boolean.

Tried with qdbusviewer both properly installed and only using the qtchooser version.

Loading...