Make SmartGit use the Freedesktop XDG standard

x80486 2 years ago updated by Thomas Singer 2 years ago 1

SmartGit currently creates a `.smartgit/` folder in the user's home directory on Linux. Most programs don't create a folder in the user's Home directory anymore and instead use the Freedesktop `$XDG` standard found here: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html.

Using this standard:

  • `$XDG_CONFIG_HOME` – says "configuration files" go to `$HOME/.config/`
  • `$XDG_DATA_HOME` – says "data files" go to `$HOME/.local/share/`
  • `$XDG_CACHE_HOME` – says "temporal/non-essential files" go to `$HOME/.cache/`

This is just a request to consider using this standard. It makes a lot of sense; it is easy for the user to understand, makes it easier to backup/locate/restore/manage/clear user's data, and creates less clutter in the user's home directory.

Thanks in advance...and thanks so much for everyone's hard work on this program – it's amazing!

Satisfaction mark by x80486 2 years ago

Have you already tried SmartGit 18.2 preview from https://www.syntevo.com/smartgit/preview?

I just did it. A brand new fresh install (as a Flatpak), and I see that all of that is now in $HOME/.var/app/com.syntevo.SmartGit/config/smartgit/ ...and will be in $HOME/config/smartgit/ for the non-Flatpak'ed ones.

On a different subject, I didn't find the SVG file, nor the new install recognized the Git location (to /app/bin) in the setup phase.