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.

  • Ephera
    link
    fedilink
    English
    14
    edit-2
    2 months ago

    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
      link
      fedilink
      72 months ago

      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.

      • @notanapple@lemm.eeOP
        link
        fedilink
        English
        42 months ago

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

        (thanks both of you)

        • mox
          link
          fedilink
          3
          edit-2
          2 months 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

      • Ephera
        link
        fedilink
        English
        22 months 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. 🙃