Remove accidentally commited debug code.
This commit is contained in:
parent
b98dcc90d8
commit
6b31dd0e85
|
@ -21,7 +21,6 @@
|
||||||
#include "ops/operation.h"
|
#include "ops/operation.h"
|
||||||
#include "util/report.h"
|
#include "util/report.h"
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#include <QDBusInterface>
|
#include <QDBusInterface>
|
||||||
#include <QDBusReply>
|
#include <QDBusReply>
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
|
@ -53,20 +52,13 @@ void OperationRunner::run()
|
||||||
// Disable Plasma removable device automounting
|
// Disable Plasma removable device automounting
|
||||||
unsigned int currentUid = getuid(); // 0 if running as root
|
unsigned int currentUid = getuid(); // 0 if running as root
|
||||||
unsigned int userId = getpwnam(getlogin())->pw_uid; // uid of original user before sudo
|
unsigned int userId = getpwnam(getlogin())->pw_uid; // uid of original user before sudo
|
||||||
qDebug() << "sessionBus" << QDBusConnection::sessionBus().isConnected();
|
|
||||||
QDBusConnection::disconnectFromBus(QStringLiteral("qt_default_session_bus"));
|
|
||||||
seteuid(userId);
|
seteuid(userId);
|
||||||
QStringList modules;
|
QStringList modules;
|
||||||
// QDBusConnection bus = QDBusConnection::connectToBus(QDBusConnection::SessionBus, QStringLiteral("sessionBus"));
|
QDBusConnection bus = QDBusConnection::connectToBus(QDBusConnection::SessionBus, QStringLiteral("sessionBus"));
|
||||||
QDBusConnection bus = QDBusConnection::connectToBus(QDBusConnection::SessionBus, QStringLiteral("qt_default_session_bus"));
|
|
||||||
DBusConnection(_q_manager()->busConnection(SessionBus))
|
|
||||||
qDebug() << "bus" << bus.isConnected();
|
|
||||||
qDebug() << "sessionBus" << QDBusConnection::sessionBus().isConnected();
|
|
||||||
QDBusInterface kdedInterface( QStringLiteral("org.kde.kded5"), QStringLiteral("/kded"), QStringLiteral("org.kde.kded5"), bus );
|
QDBusInterface kdedInterface( QStringLiteral("org.kde.kded5"), QStringLiteral("/kded"), QStringLiteral("org.kde.kded5"), bus );
|
||||||
QDBusReply<QStringList> reply = kdedInterface.call( QStringLiteral("loadedModules") );
|
QDBusReply<QStringList> reply = kdedInterface.call( QStringLiteral("loadedModules") );
|
||||||
if ( reply.isValid() )
|
if ( reply.isValid() )
|
||||||
modules = reply.value();
|
modules = reply.value();
|
||||||
qDebug() << modules;
|
|
||||||
QString automounterService = QStringLiteral("device_automounter");
|
QString automounterService = QStringLiteral("device_automounter");
|
||||||
bool automounter = modules.contains(automounterService);
|
bool automounter = modules.contains(automounterService);
|
||||||
if (automounter)
|
if (automounter)
|
||||||
|
|
Loading…
Reference in New Issue