After https://invent.kde.org/plasma/plasma-desktop/-/commit/a609b639a3aa2493d1db3922fb7d733733d97c20, the favorites are ported to kastats before system-wide config (kickoffrc, plasmoid setup scripts) are evaluated. Afterwards, those don't have any effect anymore. See https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/793 for details.
Ivan, do you know if it's possible for distros to modify the global favorites or at least the favorites of the default activity? I noticed that ~/.config/kactivitymanagerd-statsrc stored the favorites of various instances of kickoff and kicker.
It seems like directly modifying the global favorites instead of first creating legacy favorites and converting them to KActivities favorites would be technically better.
I still haven't found a solution to this issue. /usr/share/plasma/look-and-feel/org.kde.solydk.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kicker.js is ignored. I also created /etc/skel/.config/kactivitymanagerd-statsrc with global favorites added, but on first login it is overwritten with the defaults. I followed the Fabian's links but that didn't bring me closer to a solution. Can anybody point me in the right direction?
In the end for Kubuntu I went brute force and patched the kicker/kickoff xml files https://git.launchpad.net/~kubuntu-packagers/kubuntu-packaging/+git/plasma-desktop/plain/debian/patches/favourites.patch?h=kubuntu_lunar_archive Not ideal, but it works.
(In reply to Rik Mills from comment #4) > In the end for Kubuntu I went brute force and patched the kicker/kickoff xml > files Same here.
Thanks, that did the trick. And agreed, it's rather crude but for now, it's good enough.
*** Bug 458125 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4152
Git commit 9ef4cbcfae49752e774ab3abeda350d05258e3f0 by Harald Sitter. Committed on 19/07/2024 at 10:11. Pushed by sitter into branch 'master'. kicker: give distros a way to manipulate favorites simply seeds the initial ids list with values from kicker-extra-favoritesrc M +18 -9 applets/kicker/plugin/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/9ef4cbcfae49752e774ab3abeda350d05258e3f0
Nice! Could you elaborate on how to configure this (where the kicker-extra-favoritesrc file is expected, which ids and where to get them)?
Indeed, this should be documented somewhere, ideally at https://develop.kde.org/docs/plasma/. Harald, could you supply a sample config file, and Thiago, could you write up some docs about this?
❯ cat /etc/xdg/kicker-extra-favoritesrc [General] Prepend=org.kde.filelight.desktop;org.kde.drkonqi.coredump.gui.desktop Append=org.kde.dragonplayer.desktop IgnoreDefaults=false