https://bugs.kde.org/show_bug.cgi?id=378683
--- Comment #3 from Bernard Gray <bernard.g...@gmail.com> --- Argh! Lastly, there seems to be quite a bit of lag between creating the systemtray widget, and being able to reference/modify it's configKeys - eg, the following code does not actually apply/honour any of the configs I write, if executed as per below: =============== var panel = new Panel(); var widget = panel.addWidget("org.kde.plasma.systemtray"); var sysTrayId = widget.readConfig("SystrayContainmentId", -1); if (sysTrayId > 0) { print(sysTrayId); var containment = desktopById(sysTrayId); containment.currentConfigGroup = ["General"]; var showns = [ "org.kde.discovernotifier", "org.kde.kdeconnect", "org.kde.plasma.bluetooth" , "org.kde.plasma.clipboard" , "org.kde.plasma.devicenotifier" , "org.kde.plasma.mediacontroller" , "org.kde.plasma.networkmanagement" , "org.kde.plasma.notifications" , "org.kde.plasma.printmanager" , "org.kde.plasma.volume" ]; var hiddens = [ "org.kde.plasma.battery" , "org.kde.plasma.ktp-contactlist" ]; containment.writeConfig("extraItems", showns); containment.writeConfig("hiddenItems", hiddens); } ================ If instead of creating a new panel, I grab the systray from an existing panel, it applies fine... -- You are receiving this mail because: You are watching all bug changes.