Skip to content

Commit

Permalink
fix(electron): fix windows userspace loss (toeverything#8450)
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Oct 8, 2024
1 parent 9c8e8d7 commit 67f7a4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/apps/electron/src/helper/workspace/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'node:path';

import fs from 'fs-extra';

import { isWindows } from '../../shared/utils';
import type { SpaceType } from '../db/types';
import { logger } from '../logger';
import { mainRPC } from '../main-rpc';
Expand All @@ -28,7 +29,7 @@ export async function getWorkspaceBasePath(
return path.join(
await getAppDataPath(),
spaceType === 'userspace' ? 'userspaces' : 'workspaces',
workspaceId
isWindows() ? workspaceId.replace(':', '_') : workspaceId
);
}

Expand Down

0 comments on commit 67f7a4d

Please sign in to comment.