()
| 25 | } |
| 26 | |
| 27 | export function getDesktopUserDataPath() { |
| 28 | if (cachedUserDataPath) { |
| 29 | return cachedUserDataPath |
| 30 | } |
| 31 | |
| 32 | const configuredUserDataPath = getProcessEnvironmentVariable('HOWCODE_USER_DATA_PATH')?.trim() |
| 33 | if (configuredUserDataPath) { |
| 34 | cachedUserDataPath = configuredUserDataPath |
| 35 | return configuredUserDataPath |
| 36 | } |
| 37 | |
| 38 | cachedUserDataPath = getDefaultElectronUserDataPath() |
| 39 | return cachedUserDataPath |
| 40 | } |
no test coverage detected