diff --git a/desktop/app/src/utils/pathUtils.tsx b/desktop/app/src/utils/pathUtils.tsx index 31c2e04d5..ea5a9aad9 100644 --- a/desktop/app/src/utils/pathUtils.tsx +++ b/desktop/app/src/utils/pathUtils.tsx @@ -31,6 +31,15 @@ export function getStaticPath() { return _staticPath; } +let _appPath: string | undefined = undefined; +export function getAppPath() { + if (!_appPath) { + _appPath = path.join(getStaticPath(), '..'); + } + + return _appPath; +} + export function getChangelogPath() { const staticPath = getStaticPath(); let changelogPath = '';