Adjusting Kickoff favorites for Plasma 5.27 not working anymore

David Redondo kde at david-redondo.de
Tue May 23 10:12:25 BST 2023


I think this issue has been reported as https://bugs.kde.org/show_bug.cgi?id=448660
Seems distros resort to patching files, as these are installed maybe you can do so as 
well. On my system that is 
/usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/config/main.xml

David

Am Freitag, 19. Mai 2023, 18:06:38 CEST schrieb Oliver Freyermuth:
> (in case I ask at the wrong place, please redirect me)
> 
> Dear Plasma devs,
> 
> I'm trying to set Kickoff favorites in Plasma 5.27. The following
> Plasmascript worked fine with Plasma 5.20 previously, and the used config
> group and parameters are still documented in the Plasma scripting
> documentation:
> 
> 
> for (var i in panels()) {
>      var panel = panels()[i];
> 
>      for (var j in panel.widgetIds) {
>          var widget = panel.widgetById(panel.widgetIds[j]);
> 
>          if (widget.type == "org.kde.plasma.kickoff") {
>              print (widget);
>              widget.currentConfigGroup = ["General"];
> 
>              widget.writeConfig("favorites", [
>                  'applications:gimp.desktop',
>              ]);
>              // Dirty hack:
>              widget.writeConfig('favoritesPortedToKAstats', false);
> 
>              widget.reloadConfig();
>          }
>      }
> }
> 
> 
> However, it seems to be ineffective with Plasma 5.27.
> 
> To my knowledge, favorites are now stored in kactivitymanager's SQLite DB,
> and their order in ~/.config/kactivitymanagerd-statsrc .
> 
> Is there a way to pre-set favorites for new accounts via plasma scripting
> working with Plasma 5.27?
> 
> Thanks in advance (and please RTFM me in case I missed some documentation),
> 	Oliver
> 
> PS: Please keep me in CC, I'm not subscribed to the list. Thanks!






More information about the Plasma-devel mailing list