Changeset View
Changeset View
Standalone View
Standalone View
src/util/externalcommand.cpp
Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Line(s) | |||||
372 | void ExternalCommand::setExitCode(int i) | 372 | void ExternalCommand::setExitCode(int i) | ||
373 | { | 373 | { | ||
374 | d->m_ExitCode = i; | 374 | d->m_ExitCode = i; | ||
375 | } | 375 | } | ||
376 | 376 | | |||
377 | bool ExternalCommand::startHelper() | 377 | bool ExternalCommand::startHelper() | ||
378 | { | 378 | { | ||
379 | if (!QDBusConnection::systemBus().isConnected()) { | 379 | if (!QDBusConnection::systemBus().isConnected()) { | ||
380 | qWarning() << "Could not connect to DBus session bus"; | 380 | qWarning() << "Could not connect to DBus system bus"; | ||
381 | return false; | 381 | return false; | ||
382 | } | 382 | } | ||
383 | QDBusInterface iface(QStringLiteral("org.kde.kpmcore.helperinterface"), QStringLiteral("/Helper"), QStringLiteral("org.kde.kpmcore.externalcommand"), QDBusConnection::systemBus()); | 383 | QDBusInterface iface(QStringLiteral("org.kde.kpmcore.helperinterface"), QStringLiteral("/Helper"), QStringLiteral("org.kde.kpmcore.externalcommand"), QDBusConnection::systemBus()); | ||
384 | if (iface.isValid()) { | 384 | if (iface.isValid()) { | ||
385 | exit(0); | 385 | exit(0); | ||
386 | } | 386 | } | ||
387 | 387 | | |||
388 | d->m_thread = new DBusThread; | 388 | d->m_thread = new DBusThread; | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |