https://bugs.kde.org/show_bug.cgi?id=378683

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@davidedmundson.co.uk

--- Comment #1 from David Edmundson <k...@davidedmundson.co.uk> ---
The system tray is implemented a bit specially. There's an applet, but then
that applet links to a containment which then has the configuration you want to
edit.

Try this:

panel = panels()['0'];
for (var j in panel.widgetIds) {
    var widget = panel.widgetById(panel.widgetIds[j]);
    sysTrayId = widget.readConfig("SystrayContainmentId", -1);
    if (sysTrayId > 0) {
         var containment = desktopById(sysTrayId);
         containment.currentConfigGroup = ["General"];
         print(containment.configKeys);
         //Your writeConfig code here
    }
}


The fact that we're calling "desktopById" is a bit weird and confusing on our
part, it's more just genericContainmentById 

Note also that we don't list configKeys if they match the default as they're
not in the conifg file (though maybe we could/should)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to