mirror of
https://invent.kde.org/network/kdeconnect-kde.git
synced 2026-09-29 11:12:50 +02:00
## Summary `kdeconnect-cli --list-notifications` always printed nothing, even when the paired device had active notifications. The CLI used `NotificationsModel`: it called `setDeviceId()` and immediately read `rowCount()`. The model populates its data through asynchronous D-Bus calls, so at the moment it was read no reply had arrived yet and the model was always empty. The fix drops the model from this code path and uses synchronous D-Bus calls via `DeviceNotificationsDbusInterface` (`activeNotifications()`) and `NotificationDbusInterface` (`appName()`, `ticker()`), consistent with how other CLI commands talk to the daemon. BUG: 440602 ## Test Plan ### Before: 1. Pair a device that has at least one active notification (e.g. a missed call). 2. Run `kdeconnect-cli --device <id> --list-notifications`. 3. Observe that nothing is printed, while the same notifications are visible in the app. ### After: 1. Same setup as above. 2. Run `kdeconnect-cli --device <id> --list-notifications`. 3. Each active notification is printed as `- <app name>: <title>`, e.g.: `- Phone: Georgi: Missed call` Verified on Windows 11 (Craft/MSVC build) against a paired Android device with a real missed call notification, and on WSL Linux (Ubuntu 26.04). ## AI Usage Used AI: Yes (kimi-k3)