Bug 488503 - KDE Connect Send notifications plugin no longer populates the applications list. Cannot blacklist anything.
Summary: KDE Connect Send notifications plugin no longer populates the applications li...
Status: ASSIGNED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 25.04.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 482540 485601 487966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-14 16:17 UTC by cgar
Modified: 2025-05-12 04:12 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cgar 2024-06-14 16:17:57 UTC
SUMMARY
KDE Connect's Send notifications plugin no longer populates the applications list. Due to this, nothing can be added to the blacklist, which leads to many unwanted notifications on the Android side.

STEPS TO REPRODUCE
1. Open KDE Connect in system settings on the Linux side.
2. Open the Send notifications configuration window.
3. Observe that the Applications box is empty, despite having send sometimes hundreds of notifications.

OBSERVED RESULT
Applications box is empty, despite having sent notifications.

EXPECTED RESULT
Applications box contains list of apps that sent notifications which allows adding them to the blacklist.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.4-arch1-1 / plasma-desktop 6.0.5-1
KDE Plasma Version: 6.0.5
KDE Frameworks Version:  6.3.0
Qt Version: 6.7.1 (built against 6.7.1)

ADDITIONAL INFORMATION
wayland
Comment 1 Kye 2024-07-01 00:38:47 UTC
Happening for me as well.
Comment 2 kazel 2024-07-23 10:19:31 UTC
have the same issue since updating from 5 to 6
Comment 3 cwo 2024-08-01 00:08:11 UTC
*** Bug 487966 has been marked as a duplicate of this bug. ***
Comment 4 cwo 2024-08-01 00:40:27 UTC
*** Bug 482540 has been marked as a duplicate of this bug. ***
Comment 5 cwo 2024-08-02 13:12:59 UTC
*** Bug 485601 has been marked as a duplicate of this bug. ***
Comment 6 DT 2024-08-12 16:52:04 UTC
I also confirm the same behaviour.
Operating System: Nobara Linux 39
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.6.2
Kernel Version: 6.8.12-200.fsync.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 7 Florian Achleitner 2024-11-29 09:25:57 UTC
This one is still there on Fedora 41.
In the journal I see this line twice, when I open the config dialog of sendnotifications in systemsettings:

QVariant::load: unknown user type with name NotifyingApplication.

This is probably declared here https://invent.kde.org/network/kdeconnect-kde/-/blob/master/plugins/sendnotifications/notifyingapplication.h

However, my understanding of how that works in QT/KDE is not sufficient.
Comment 8 kazel 2024-11-29 16:41:03 UTC
can confirm, bug is still there
Comment 9 Leo Gaspard 2024-12-29 09:52:32 UTC
This still seems to be here, I'm also seeing this on:

Operating System: NixOS 25.05
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.6.66 (64-bit)
Graphics Platform: Wayland
Processors: 16 Γ— AMD Ryzen 9 PRO 6950H with Radeon Graphics
Memory: 30.6 Gio of RAM
Graphics Processor: AMD Radeon Graphics
Comment 10 Florian Achleitner 2025-05-06 13:20:27 UTC
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Comment 11 Florian Achleitner 2025-05-06 13:24:07 UTC
I confirm this is still an issue with kdeconnectd-25.04.0-2.fc42.x86_64.
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0

In the journal I still observe this line when I open the Send Notifications Settings Dialog.
systemsettings[95177]: QVariant::load: unknown user type with name NotifyingApplication.

I'm ready to help solve this, but I'm not familiar with QT/KDE.
Comment 12 Florian Achleitner 2025-05-06 14:36:57 UTC
Now that I've came across this again, I played around a little and found that NotifyingApplication seems to be properly serialized to a string in the config file at ~/.config/kdeconnect/[ID]/kdeconnect_sendnotifications/config

This one is for "notify-send".

[applications]
1\value=@Variant(\0\0\0\x7f\0\0\0\x15NotifyingApplication\0\0\0\0\x16\0n\0o\0t\0i\0\x66\0y\0-\0s\0\x65\0n\0\x64\0\0\0\0\x1\xff\xff\xff\xff)
size=1

When I change the 5th byte from the end from \x1 to \0, and restart kdeconnectd, this application is disabled properly.
This byte is the serialized member "active" https://invent.kde.org/network/kdeconnect-kde/-/blob/master/plugins/sendnotifications/notifyingapplication.h#L14

Hence, I assume that the deserialization in the KCM module is the problem, which happens here https://invent.kde.org/network/kdeconnect-kde/-/blob/master/plugins/sendnotifications/sendnotifications_config.cpp#L57
Anybody with QT knowhow might smell the problem immediately!?
Comment 13 Florian Achleitner 2025-05-06 14:57:54 UTC
Reading about QVariant, I suspect a call to qRegisterMetaType<T>() is missing in the config part and in the plugin part, however it only seems to hurt the config module.
Comment 14 Bug Janitor Service 2025-05-11 07:48:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/820
Comment 15 cgar 2025-05-12 04:12:36 UTC
Merged! πŸŽŠπŸŽ‰πŸ₯³
https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/820#note_4dc8b6bb08bb2bd8acf7ba68b1fd6f851497a71d

Thanks a bunch Florian!
It will be so nice to have proper notifications sync again ☺️
I hope it wont be too long till it's in Arch 🀞