this post was submitted on 02 Mar 2025
24 points (100.0% liked)

KDE

118 readers
7 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 2 years ago
MODERATORS
 

I would like to backup some KDE settings but don't really know which files to copy from .config

Searching for their names in github.com/KDE has given me some idea about their purposes but I couldn't find any comments or documentation there either.

top 7 comments
sorted by: hot top controversial new old
[–] Ephera@lemmy.ml 9 points 1 day ago* (last edited 1 day ago) (1 children)

A trick you can do to find out individual settings files, is:

  1. In your ~/.config folder, run git init.
  2. git add .
  3. git commit -m "Initial commit"
  4. Change a setting in the GUI.
  5. Run git status or git diff to see which file got changed.

You can then run git restore . and repeat from step 4.

If you're done checking settings, just delete ~/.config/.git/.

[–] mox@lemmy.sdf.org 4 points 20 hours ago (2 children)

Or do something like this, which is simpler, easier on your SSD, and doesn't require installing git:

find ~/.config -mmin -3

That finds files under the .config directory that were modified less than 3 minutes ago.

[–] Ephera@lemmy.ml 1 points 3 hours ago

Ah, neat. I had to come up with my trick, because I wanted to know specifically which line changed to what. That's pretty easy to see with git diff then. But yeah, if you just want to know which files changed, that's certainly saner. 🙃

[–] notanapple@lemm.ee 4 points 19 hours ago (1 children)

thanks thats really useful! its amazing how much utility the linux shell has

(thanks both of you)

[–] mox@lemmy.sdf.org 3 points 18 hours ago* (last edited 16 hours ago)

You're welcome.

BTW, commands like these predate Linux. You'll find them on BSD, macOS, Solaris, and practically every other OS with a Unix heritage.

Edit: You might find this video (or at least the segment I'll link) interesting.

https://youtu.be/tc4ROCJYbm0?t=297

[–] troyunrau@lemmy.ca 3 points 1 day ago (1 children)

Most of them have the app name in the config file. And the config files are largely human readable. Sort of self documenting.

Why not just back up the whole folder though?

[–] notanapple@lemm.ee 2 points 1 day ago

Don't want to backup the whole folder because I only want to keep a few key settings (specifically my taskbar/widgets positions/config) but I guess I will backup whatever I think is probably related.