helpers library

Classes

GlobalVariable
Global variables for global context access.

Properties

initialized bool
read / write
language String
read / write
prefs SharedPreferences
read / write

Functions

distroLabel(String item) String
Get distro label from item.
getDistroPath() SafePath
Return the general distro path. Distros are saved here by default. It will be created if it does not exist.
getInstancePath(String name) SafePath
Get the instance path for the name instance. It will be created if it does not exist.
getInstanceSize(String name) String
Get instance size for name instance.
getTmpPath() SafePath
Get the tmp folder path. This is used for the download of docker layers. It will be created if it does not exist.
getWslConfigPath() String
Get the wslconfig path
initPrefs() Future
Initialize shared preferences
replaceSpecialChars(String name) String
Replace special characters in name with underscores.