128
125
QDBusConnection::systemBus(),
129
126
QDBusServiceWatcher::WatchForRegistration,
134
130
// if PackageKit is running check to see if there are running transactons already
135
131
bool packagekitIsRunning = nameHasOwner(QLatin1String("org.freedesktop.PackageKit"),
136
132
QDBusConnection::systemBus());
138
134
m_transactionWatcher = new TransactionWatcher(packagekitIsRunning, this);
139
136
// connect the watch transaction coming from the updater icon to our watcher
140
137
connect(m_interface, SIGNAL(watchTransaction(QDBusObjectPath)),
141
138
m_transactionWatcher, SLOT(watchTransaction(QDBusObjectPath)));
141
connect(m_AptRebootListener, SIGNAL(requestReboot()), m_transactionWatcher, SLOT(showRebootNotificationApt()));
142
QTimer::singleShot(2 /*minutes*/ * 60 /*seconds*/ * 1000 /*msec*/, m_AptRebootListener, SLOT(checkForReboot()));
143
144
if (packagekitIsRunning) {
144
145
// PackageKit is running set the session Proxy