Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(macos): stop repeated data access prompts #11920

Closedpraveenperera(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/11920/headopened View on GitHub

Showing 13 changed files with 15 additions and 71 deletions (loading 11).

x
0 of 13 viewed, 13 left
11 additions and 45 deletionsapps/desktop/src/backend/DesktopServerExposure.test.tsModified
View file
@@ -5,18 +5,14 @@
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
-import * as Sink from "effect/Sink";
-import * as Stream from "effect/Stream";
-import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
​
+import { TailscaleIdentityDiscovery } from "@t3tools/tailscale";
import * as DesktopEnvironment from "../app/DesktopEnvironment.ts";
import * as DesktopConfig from "../app/DesktopConfig.ts";
import * as DesktopNetworkInterfaces from "./DesktopNetworkInterfaces.ts";
import * as DesktopServerExposure from "./DesktopServerExposure.ts";
import * as DesktopAppSettings from "../settings/DesktopAppSettings.ts";
​
-const encoder = new TextEncoder();
-​
const emptyNetworkInterfaces: DesktopNetworkInterfaces.NetworkInterfaces = {};
const lanNetworkInterfaces: DesktopNetworkInterfaces.NetworkInterfaces = {
en0: [
@@ -38,36 +34,6 @@
],
};
​
-function mockSpawnerLayer(statusJson = "{}") {
- return Layer.succeed(
- ChildProcessSpawner.ChildProcessSpawner,
- ChildProcessSpawner.make(() =>
- Effect.succeed(