Skip to content

Commit

Permalink
Prevent socket server starting on Windows and Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
epetousis authored and SpacingBat3 committed Sep 12, 2022
1 parent 8c1f609 commit be430bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources/code/main/modules/keybind-socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ interface KeybindState {
}

export default function bindKeybindSocket(window: Electron.BrowserWindow) {
if (process.platform === "win32" || process.platform === "darwin") {
console.error("[Keybinds] Not running under non-macOS UNIX. Will not bind socket.");
return;
}

if (!process.argv.includes("--ozone-platform=wayland")) {
console.error("[Keybinds] Not running under Wayland. Will not bind socket.");
return;
Expand Down

0 comments on commit be430bb

Please sign in to comment.