Bug 410222 - Kicker (and probably kickoff too) ignores configured favorites in configuration file
Summary: Kicker (and probably kickoff too) ignores configured favorites in configurati...
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (show other bugs)
Version: 5.14.5
Platform: Debian stable Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-26 07:54 UTC by Magnus Määttä
Modified: 2019-07-26 10:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Add favorites from configuration file to favorites (649 bytes, patch)
2019-07-26 07:54 UTC, Magnus Määttä
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Määttä 2019-07-26 07:54:49 UTC
Created attachment 121738 [details]
Add favorites from configuration file to favorites

SUMMARY

kicker (and I'm pretty sure kickoff too) doesn't respect favorites configured in the configuration file kactivitymanagerd-statsrc.


STEPS TO REPRODUCE
1. Add kactivitymanagerd-statsrc-file and kactivitymanagerdrc-file with customized favorites to /etc/skel/.config/ (will require plasma-org.kde.plasma.desktop-appletsrc file with kicker predefined as menu)
2. Add new user and login with that user
3. Click on the Kicker menu and see the missing favorites

OBSERVED RESULT
Empty favorites in kicker-menu 

EXPECTED RESULT
Menu with custom favorites according to file copied from /etc/skel/

SOFTWARE/OS VERSIONS5
Linux/KDE Plasma: Debian 10
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 18.04
Qt Version: 5.11.3

ADDITIONAL INFORMATION

I've attached a patch that will take the favorites from the configuration file and properly add it to the menu (leaving the unknown unconfigurable other "source" alone).
Comment 1 Eike Hein 2019-07-26 08:36:10 UTC
Favorites are stored in an sqlite database, not in the rc file.

For ISV pre-customization of launcher favorites please us applet config initialization scripts in a Plasma LnF package.
Comment 2 Magnus Määttä 2019-07-26 10:08:42 UTC
That seems like an extremely complicated, inflexible and undocumented way of doing something REALLY simple like changing a configuration file, which, btw, works with any editor.
Now I have to check the source code for who knows what package to see how the hell those "lnf"-scripts works and how to make them run for the user(s) and what it actually should include to do what the package should do by default when reading that configuration file.

Keeping configuration in an non-portable, non-editable, binary-format have never been a good idea.