mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fix server path
This commit is contained in:
parent
6ee21d2460
commit
f462ff87be
1 changed files with 3 additions and 2 deletions
|
@ -71,10 +71,11 @@ remote.initialize();
|
|||
Util.setAppPath(path.join(__dirname));
|
||||
|
||||
function waitForLibraryAndCreateWindows () {
|
||||
const currentPath = app.getPath('userData');
|
||||
const { userDataPath } = ConfigManager.config;
|
||||
|
||||
let currentPath = app.getPath('userData');
|
||||
if (userDataPath && (userDataPath != currentPath)) {
|
||||
currentPath = userDataPath;
|
||||
app.setPath('userData', userDataPath);
|
||||
};
|
||||
|
||||
|
@ -83,7 +84,7 @@ function waitForLibraryAndCreateWindows () {
|
|||
Server.setAddress(process.env.ANYTYPE_USE_SIDE_SERVER);
|
||||
waitLibraryPromise = Promise.resolve();
|
||||
} else {
|
||||
waitLibraryPromise = Server.start(binPath, userDataPath);
|
||||
waitLibraryPromise = Server.start(binPath, currentPath);
|
||||
};
|
||||
|
||||
Util.mkDir(Util.logPath());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue