This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to backup/restore panel(s) configuration

Tags: None
(comma "," separated)
User avatar
mauromol
Registered Member
Posts
8
Karma
0
OS
Hello,
I recently installed Debian 11 with KDE 5 on my father system and the problem described here for KDE 4:
viewtopic.php?f=67&t=87112

happened on his system again, driving me crazy.
I really don't know how the hell my father can so easily remove icons from the panel or even the whole panel. It never happened to me accidentally, but it seems like the more awkward the user is, the more easily they can do it.

Fortunately, in KDE 5 there's the option to add (back) a panel with default settings, but since I want some pinned apps and icons to stay on the panel for him, I would like to find a way to easily restore MY panel configuration.

Back to the days of Debian 8/KDE 4 I wrote this script that I was running on every boot, before KDE started, which was restoring my customized panel, whose configuration I had previously backed-up as ".myconfig":

Code: Select all
# the .backup file is made for safety, but it's quite useless
rm  -f ~/.kde/share/config/plasma-desktop-appletsrc.backup
cp ~/.kde/share/config/plasma-desktop-appletsrc ~/.kde/share/config/plasma-desktop-appletsrc.backup
cp ~/.kde/share/config/plasma-desktop-appletsrc.myconfig ~/.kde/share/config/plasma-desktop-appletsrc


This ensured only the panel configuration was restored on each Plasma start, not the whole KDE 4 settings.
The problem is that with KDE 5 this file (~/.kde/share/config/plasma-desktop-appletsrc) is not there any more. Is there any equivalent file I can use to restore the panel(s) configuration in a similar way, in case my father destroys/removes the panel again?

Thanks in advance for any help.
dzon
Registered Member
Posts
493
Karma
3
I believe the file you're looking for is in ~/.config , the plasma-org.kde.plasma.desktop-appletsrc.
In case your father should remove some other stuff, there's a widget that remembers the configuration. Just saying. https://store.kde.org/p/1298955/


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
User avatar
mauromol
Registered Member
Posts
8
Karma
0
OS
Thank you dzon, ~/.config/plasma-org.kde.plasma.desktop-appletsrc looks promising, I'll do some tests.

Also, the Plasma Customization Saver widget looks very interesting: of course, in my case, I have to put it on the desktop because if I put it on the panel I risk to lose it as well :-D

Thanks for your help!


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]