mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
khotkeys: try qdbusviewer-qt4 before qdbusviewer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1555593845
commit
0b8812445a
1 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <KMessageBox>
|
||||
#include <KRun>
|
||||
#include <KStandardDirs>
|
||||
|
||||
DbusActionWidget::DbusActionWidget(
|
||||
KHotKeys::DBusAction *action,
|
||||
|
@ -117,7 +118,12 @@ bool DbusActionWidget::isChanged() const
|
|||
|
||||
void DbusActionWidget::launchDbusBrowser() const
|
||||
{
|
||||
if( KRun::runCommand( "qdbusviewer", window()) == 0 )
|
||||
QString qdbusviewerExe = KStandardDirs::findExe("qdbusviewer-qt4");
|
||||
if (qdbusviewerExe.isEmpty()) {
|
||||
// no exe lookup, let it fail if not found
|
||||
qdbusviewerExe = "qdbusviewer";
|
||||
}
|
||||
if( KRun::runCommand( qdbusviewerExe, window()) == 0 )
|
||||
{
|
||||
KMessageBox::sorry( window(), i18n( "Failed to run qdbusviewer" ));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue