Adjusting Kickoff favorites for Plasma 5.27 not working anymore
Oliver Freyermuth
freyermuth at physik.uni-bonn.de
Tue May 23 10:23:17 BST 2023
Dear David,
many thanks, indeed, this seems exactly like the bug I was looking for.
While patching the files is not nice, it's certainly a solution for the time being
(in my case, I am using Puppet for site-specific configuration on top of Debian, so things appear to be already distro-patched anyways).
Thanks and cheers,
Oliver
Am 23.05.23 um 11:12 schrieb David Redondo:
> 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!
>
>
>
>
-------------- 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/20230523/9df1483c/attachment.bin>
More information about the Plasma-devel
mailing list