Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
Discord sharing works with any client that serves Discord's local socket, not only Discord's own app. Highball started its bridge only while an app with Discord's bundle id ran (com.hnc.Discord, PTB, Canary), so a player on Vesktop got no game activity in American Truck Simulator on 0.10.14 (Discord, 2026-10-08). The bridge itself only needs a client listening on $TMPDIR/discord-ipc-N, which Vesktop's arRPC serves at the same path as Discord's app once its Rich Presence setting is on (Vesktop 1.6.7, Settings, Miscellaneous, off by default there; arRPC's ipc.js takes the first free index 0 to 9, which the bridge already tries). Highball now treats Discord as open when Discord's app runs or such a socket exists. New test with a fake client socket.
Gauthier Piarrette2345312f5604
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swiftindex 3885cfa..df3021a 100644--- a/Sources/HighballApp/AppState.swift+++ b/Sources/HighballApp/AppState.swift@@ -1854,10 +1854,12 @@ final class AppState {}}+ /// Discord's own apps, or any other client serving Discord's local socket (Vesktop with+ /// arRPC on), which is all the bridge needs.private var discordIsOpen: Bool {NSWorkspace.shared.runningApplications.contains {["com.hnc.Discord", "com.hnc.DiscordPTB", "com.hnc.DiscordCanary"].contains($0.bundleIdentifier ?? "")- }+ } || DiscordPresence.shared.clientSocketPresent}private func stopDiscordWatch() {diff --git a/Sources/HighballKit/DiscordPresence.swift b/Sources/HighballKit/DiscordPresence.swiftindex 64741b8..ccec291 100644--- a/Sources/HighballKit/DiscordPresence.swift+++ b/Sources/HighballKit/DiscordPresence.swift@@ -20,6 +20,11 @@ public final class DiscordPresence: @unchecked Sendable {private var helpers: [String: Process] = [:]private var message = "Waiting for a game"public var status: String { isEnabled ? lock.withLock { message } : "Discord sharing is off" }+ /// Whether a Discord client serves its local socket: Discord's own app, or another client that+ /// speaks its IPC, such as Vesktop with its Rich Presence (arRPC) setting on. The bridge needs+ /// nothing more, and a player on Vesktop got no game activity while Highball looked for+ /// Discord's app by its bundle id alone (Discord, 2026-10-08).+ public var clientSocketPresent: Bool { socketPaths().contains { FileManager.default.fileExists(atPath: $0) } }public var isEnabled: Bool { permissionLock.withLock { enabled } }public init() {let store = DiscordCatalogStore()diff --git a/Tests/HighballKitTests/DiscordPresenceTests.swift b/Tests/HighballKitTests/DiscordPresenceTests.swiftindex 7def86e..5b36d86 100644--- a/Tests/HighballKitTests/DiscordPresenceTests.swift+++ b/Tests/HighballKitTests/DiscordPresenceTests.swift@@ -122,6 +122,14 @@ final class DiscordPresenceTests: XCTestCase {XCTAssertThrowsError(try reader2.readFrame(timeout: 1))}+ /// Any client serving Discord's socket counts, not only Discord's own app (Vesktop, 2026-10-08).+ func testAClientSocketCountsAsDiscordOpen() throws {+ XCTAssertFalse(DiscordPresence(socketPaths: { ["/nonexistent/discord-ipc-0"] }).clientSocketPresent)+ let fake = try FakeDiscord()+ defer { fake.stop() }+ XCTAssertTrue(DiscordPresence(socketPaths: { ["/nonexistent/discord-ipc-0", fake.path] }).clientSocketPresent)+ }+func testPassiveUsesGameIDClearsOnRichPresenceAndResumes() throws {let fake = try FakeDiscord()defer { fake.stop() }