API Scripting - Set Panel property in layout.js Widget org.kde.plasma.keyboardindicator
Kai Uwe Broulik
kde at privat.broulik.de
Thu Feb 1 11:13:58 GMT 2024
Hi,
have you tried setting it as an Array?
keyboardindicator.writeConfig("key", ["Caps Lock", "Num Lock"])
Cheers
Kai Uwe
Am 01.02.24 um 11:31 schrieb Totoro:
> Hi,
>
> In my company we making our hown KDE layout-templates.
>
> Actually I have problem with keyboardindicator widget.
> I setup in the layout.js like :
> var keyboardindicator = panel.addWidget("org.kde.plasma.keyboardindicator")
> keyboardindicator.currentConfigGroup = ["General"]
> keyboardindicator.writeConfig("key", 'Caps Lock,Num Lock')
>
> But when configuration is generated in
> plasma-org.kde.plasma.desktop-appletsrc and I do a logout / login
> configuration is change from "Caps Lock,Num Lock" to "Caps Lock\\,Num Lock".
> So configuration is not load correctly.
>
> Any idea ?
>
> Thanks.
More information about the kde-devel
mailing list