getDistroPath function

SafePath getDistroPath()

Return the general distro path. Distros are saved here by default. It will be created if it does not exist.

e.g. C:\WSL2-Distros\distros

Implementation

SafePath getDistroPath() {
  String path = prefs.getString('DistroPath') ?? defaultPath;
  return SafePath(path)..cd('distros');
}