Bug 423561 - Widgets in the System Tray can no longer be disabled by default (via the main.xml file)
Summary: Widgets in the System Tray can no longer be disabled by default (via the main...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (other bugs)
Version First Reported In: 5.19.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-06-26 20:56 UTC by The Feren OS Dev
Modified: 2020-06-30 11:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.19.3
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description The Feren OS Dev 2020-06-26 20:56:35 UTC
SUMMARY
In Plasma 5.19.2, editing the default configuration of System Tray to exclude the Notifications Plasmoid from the tray by default no longer disables the Notifications Plasmoid in the tray by default, therefore breaking any configurations where Notifications was present in a Latte Dock, etc rather than in System Tray. This worked in Plasma 5.18.5, but stopped working in 5.19.2.



STEPS TO REPRODUCE
1. Configure System Tray to disable the Notifications widget
2. Copy the values saved to plasma-org.kde.plasma.desktop-appletsrc into the /usr/share/plasma/plasmoids/org.kde.plasma.private.notifications/config/main.xml file under their appropriate locations
3. Re-apply a Desktop Layout

OBSERVED RESULT
The Notifications widget gets re-added to the System Tray by Plasma despite the default configs telling it not to

EXPECTED RESULT
The notifications widget will be disabled in the System Tray by default once this default configurations change is in place.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Feren OS with KDE neon User Edition's 5.19.2
(available in About System)
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
I need this to work for Feren OS's default configuration as it otherwise breaks the Latte Dock instance of the Notifications widget.
Comment 1 The Feren OS Dev 2020-06-26 21:06:00 UTC
Correction* org.kde.plasma.private.systemtray/contents/config/main.xml
Comment 2 The Feren OS Dev 2020-06-26 22:57:34 UTC
Update: I managed to use a bit of scripting and file editing to get around this issue, however I've also come to find out that this issue also affects ANY widget in the System Tray that can be disabled in configurations.
Comment 3 Bug Janitor Service 2020-06-29 18:08:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/125
Comment 4 Konrad Materka 2020-06-29 18:09:19 UTC
That was kind of undocumented feature... Anyway, I created Merge Request with a fix.
Comment 5 Konrad Materka 2020-06-30 11:31:53 UTC
Git commit 14695957a18af530d0b07026d0058b858264f3a3 by Konrad Materka.
Committed on 30/06/2020 at 08:32.
Pushed by kmaterka into branch 'Plasma/5.19'.

[applet/systemtray] Load config defaults from main.xml

It is possible to assign default values in main.xml, but these are not
used for extraItems and knownItems. Add support for default values.
FIXED-IN: 5.19.3

M  +5    -3    applets/systemtray/systemtray.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/14695957a18af530d0b07026d0058b858264f3a3