Can't create an Activity via Scripting Console with plugin=org.kde.plasma.folder (aka folderview)

Bernard Gray bernard.gray at gmail.com
Thu Feb 16 06:12:39 UTC 2017


Hi all,
I tried a question on #plasma but was recommended to try here due to
timezone disconnect.

I'm trying to build a custom plasma init script for my kde environment
and I'm having a few issues. Namely, I want to create a default
Activity with plugin =  org.kde.plasma.folder" (aka folderview)
I'm using the desktop shell scripting console for plasma to debug my
script, I can interract with activities fine, but that particular
setting is simply not applying - here's my script snippet from the
console:

  var activity = createActivity("foo");
  var desktopsArray = desktopsForActivity(activity);

  for( var j = 0; j < desktopsArray.length; j++) {
      var desktop = desktopsArray[j];
      print(desktop.globalConfigKeys);
      desktop.writeGlobalConfig("plugin", "org.kde.plasma.folder");
      desktop.writeGlobalConfig("wallpaperPlugin", "org.kde.image");
      desktop.reloadConfig();
  }


I've tried both writeConfig() and writeGlobalConfig() - I get no
errors, and print(desktop.configKeys) or
print(desktop.globalConfigKeys) both indicate the 'plugin'[1] config
option is available.

I'm working on Kubuntu 16.04, dpkg is reporting:
 plasma-desktop = 4:5.5.5-0ubuntu1
 kde-runtime-data = 4:15.12.3-0ubuntu1

Thanks for any help -

Bernie

===============
[1]: diff of conf after changing from Desktop mode to FolderView mode
via the GUI
--- .config/plasma-org.kde.plasma.desktop-appletsrc.orig
2017-02-16 17:09:13.314813002 +1100
+++ .config/plasma-org.kde.plasma.desktop-appletsrc     2017-02-16
17:08:52.586813002 +1100
@@ -103,15 +103,19 @@
 [Containments][1][General]
 AppletOrder=2;3;4;5;6

-[Containments][7]
+[Containments][19]
 activityId=09e1f55f-39b9-45a0-ab7e-38f60bbd66f7
 formfactor=0
 immutability=1
-lastScreen=0
+lastScreen=-1
 location=0
-plugin=org.kde.desktopcontainment
+plugin=org.kde.plasma.folder
 wallpaperplugin=org.kde.image


More information about the Plasma-devel mailing list