Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): bump Clerk Electron SDK to 0.0.24 and register t3code:// scheme on Linux #5015

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/5015/headmerged by juliusmarminge View on GitHub

Showing 13 changed files with 117 additions and 25 deletions (loading 9).

x
0 of 13 viewed, 13 left
0 additions and 1 deletionapps/desktop/src/app/DesktopAppIdentity.test.tsModified
View file
@@ -54,7 +54,6 @@
calls.setAboutPanelOptions.push(options);
}),
setAppUserModelId: () => Effect.void,
- requestSingleInstanceLock: Effect.succeed(true),
getAppMetrics: Effect.succeed([]),
isDefaultProtocolClient: () => Effect.succeed(false),
setAsDefaultProtocolClient: () => Effect.succeed(true),
27 additions and 19 deletionsapps/desktop/src/app/DesktopAppIdentity.tsModified
View file
@@ -45,6 +45,27 @@
: Option.none();
};
​
+export const resolveUserDataPath = Effect.gen(function* () {
+ const environment = yield* DesktopEnvironment.DesktopEnvironment;
+ const fileSystem = yield* FileSystem.FileSystem;
+ const legacyPath = environment.path.join(
+ environment.appDataDirectory,
+ environment.legacyUserDataDirName,
+ );
+ const legacyPathExists = yield* fileSystem.exists(legacyPath).pipe(
+ Effect.mapError(
+ (cause) =>
+ new DesktopUserDataPathResolutionError({
+ legacyPath,
+ cause,
+ }),