Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): published themes reach the app when it uses this machine's service #26324

Mergednot-compromised(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/26324/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 15 changed files with 47 additions and 1 deletion (loading 12).

x
0 of 15 viewed, 15 left
28 additions and 1 deletionapps/desktop/src/ipc/methods/localEnvironment.test.tsModified
View file
@@ -1,4 +1,7 @@
import { assert, describe, it } from "@effect/vitest";
+import * as NodeServices from "@effect/platform-node/NodeServices";
+import * as FileSystem from "effect/FileSystem";
+import * as Path from "effect/Path";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
​
@@ -10,7 +13,11 @@
import * as ElectronTheme from "../../electron/ElectronTheme.ts";
import * as DesktopAppSettings from "../../settings/DesktopAppSettings.ts";
import * as DesktopWindow from "../../window/DesktopWindow.ts";
-import { getLocalEnvironmentEnabled, setLocalEnvironmentEnabled } from "./localEnvironment.ts";
+import {
+ getHostEnvironmentId,
+ getLocalEnvironmentEnabled,
+ setLocalEnvironmentEnabled,
+} from "./localEnvironment.ts";
​
const layerUnusedLifecycleRuntime = Layer.mergeAll(
DesktopShutdown.layer,
@@ -27,6 +34,26 @@
);
​
describe("local environment IPC", () => {
+ it.effect("reads the shared home identity without creating one", () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;