diff --git a/src/desktop/windows-app-paths.js b/src/desktop/windows-app-paths.js index e3511e6..2e4e582 100644 --- a/src/desktop/windows-app-paths.js +++ b/src/desktop/windows-app-paths.js @@ -1,4 +1,4 @@ -import { chdirSync, existsSync } from 'node:fs' +import { existsSync } from 'node:fs' import { dirname, join } from 'node:path' const NATIVE_WRAPPER_DLL = 'libNativeWrapper.dll' @@ -34,7 +34,7 @@ export function ensureWindowsWorkingDirectory() { if (!wrapperInCwd && wrapperInBinDir) { try { - chdirSync(binDir) + process.chdir(binDir) } catch { // Ignore if we cannot change directory. }