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@lemmy.ml
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    2 days 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@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      1 day 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.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        15 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.eeOP
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

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

        (thanks both of you)

        • mox@lemmy.sdf.org
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          1 day 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