Adjusting Kickoff favorites for Plasma 5.27 not working anymore
Oliver Freyermuth
freyermuth at physik.uni-bonn.de
Fri May 19 17:06:38 BST 2023
(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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6026 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20230519/2e1dc59d/attachment.bin>
More information about the Plasma-devel
mailing list