troubleshooting dbus
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 15s
Python / lint-format (pull_request) Successful in 19s
Python / test (pull_request) Successful in 49s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m5s

This commit is contained in:
2026-06-03 17:02:46 +02:00
parent f9ab1e2a10
commit deef85d10c
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ void LidWatcher::tryConnect() {
QDBusConnection bus = QDBusConnection::systemBus();
const auto connected = bus.connect(
kLogin1Service,
QString(),
kLogin1Path,
kDBusPropertiesInterface,
"PropertiesChanged",
+5 -3
View File
@@ -31,15 +31,17 @@ class LidWatcher : public QObject {
private:
void tryConnect();
void queryLidState();
void onPropertiesChanged(const QString& interface,
const QVariantMap& changed,
const QStringList& invalidated);
QDBusServiceWatcher* m_watcher;
QTimer* m_pollTimer;
bool m_available;
LidState m_state = Opened;
private Q_SLOTS:
void onPropertiesChanged(const QString& interface,
const QVariantMap& changed,
const QStringList& invalidated);
Q_SIGNALS:
void availableChanged();
void stateChanged();