problem with icontask and javascript

Aaron J. Seigo aseigo at kde.org
Fri Dec 16 15:18:42 UTC 2011


On Friday, December 16, 2011 07:29:45 Nowardev-Team wrote:
> var icontasks = panel.addWidget("icontasks")
> icontasks.writeConfig("groupClick","1")
> icontasks.writeConfig("unity","true")
> //icontasks.writeConfig("Enabled","true")
> 
> icontasks.writeConfig("Items","file:///usr/share/applications/firefox.deskto
> p?wmClass=Firefox,file:///usr/share/applications/kde4/kate.desktop?wmClass=K
> ate,file:///usr/share/applications/kde4/konversation.desktop?wmClass=Konvers
> ation,file:////usr/share/applications/kde4/dolphin.desktop?wmClass=Dolphin,f
> ile:///usr/share/applications/chromium-browser.desktop?wmClass=Chromium-brow
> ser,file:///usr/share/applications/kde4/konsole.desktop?wmClass=Konsole,file
> :///usr/share/applications/kde4/ksnapshot.desktop?wmClass=Ksnapshot,file:///
> usr/share/applications/kde4/systemsettings.desktop?wmClass=Systemsettings")

> *I'm not 100% sure, by Launchers are in a different group.*

from http://techbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting

Array[String] currentConfigGroup: 

the current configuration group path, with each entry in the array representing 
a sub-group. This allows one to access trees of groups with code such as: 
widget.currentConfigGroup = new Array('topGroup', 'subGroupOfTopGroup'). An 
empty Array means the default (top-level) configuration group for the widget


so you probably want sth like:

icontasks.currentConfigGroup = new Array('Launchers')
icontasks.writeConfig("Items", "....")

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111216/31ce0012/attachment.sig>


More information about the Plasma-devel mailing list