Steps to rebuild plasma configs and cache on plasma desktop package update

update
plasma

#1

There has been multiple forum posts from Manjaro KDE users regarding Plasma desktop stability after Plasma desktop package update from 5.9 to 5.10.

For example upgrading from Plasma 5.9 to 5.10 causing plasma desktop to lag or plasmashell crash, desired settings not applying under system settings or happen to be unavailable or disabled.

Same principle applies to point release upgrades. eg from 5.10 --> 5.10.1 --> 5.10.2

Inorder to fix such upgrade issues execute steps detailed below to backup existing plasma configs and cache. Thereafter reboot and login for default configs to take effect and rebuild plasma cache.

To backup existing plasma config.

cd ~/.config
for j in plasma*; do mv -- "$j" "${j%}.bak"; done

To backup existing cache

mv ~/.config/Trolltech.conf ~/.config/Trolltech.conf.bak
mv ~/.cache/ ~/cache.bak
mkdir ~/.cache
kbuildsycoca5 --noincremental && kbuildsycoca4 --noincremental

Note: ~/.cache directory also contains cache for non plasma applications.
For eg. pacaur would maintain git clone under ~/.cache. For such applications u need to one by one copy respective folders and files to new ~/.cache directory after reboot.

Remember not to copy plasma specific files and ksycoca from ~/cache.bak to new ~/.cache.
Just incase if you happen to do so dolphin would prompt you to confirm overwriting existing files.
Suggest to cancel copy process, else again old cache would take effect.

Later if required u can delete remaining .bak files and directories once manjaro KDE desktop is running without any issues.

For KDE issues not resolved even after resetting configs and rebuilding plasma cache create a forum post and if required report upstream to KDE Bugzilla.


[Testing Update] 2017-06-28 - Kernels, Cinnamon, Deepin, Calamares, Plasma 5
[Stable Update] 2017-11-16 - Kernels, Mesa, KDE Apps, KDE Framework, LibreOffice, Cinnamon