Write to AppletGlobals in plasma-desktop-appletsrc with Javascript

Antony Loebs barefootedjournalist at gmail.com
Sun Apr 25 20:51:28 CEST 2010


I've been messing around with ways to script the appearance of KDE and found
Kubuntu's
01-kubuntu-default-setup.js script, which (quite nicely) shows me how to do
what I want. However, I've run into a problem with the pager; I would like
the default to be one row, instead of two. I dutifully added:
---
pager = panel.addWidget("pager");
pager.writeConfig("rows", "1");
---
to the script, but this didn't work. On closer inspection, I found that the
pager looks for something like this:
---
[AppletGlobals][plasma_applet_pager]
rows=1
---
So what would the command be to write that to plasma-desktop-appletsrc?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100425/43f05e33/attachment.htm 


More information about the Plasma-devel mailing list