diff --git a/src/main/constants.ts b/src/main/constants.ts index b91706e..2e955d9 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -77,3 +77,4 @@ export const enum MessageBoxChoice { export const isWayland = process.platform === "linux" && (process.env.XDG_SESSION_TYPE === "wayland" || !!process.env.WAYLAND_DISPLAY); +export const isLinux = process.platform === "linux"; diff --git a/src/main/keybinds.ts b/src/main/keybinds.ts index b4fbbd4..7c40081 100644 --- a/src/main/keybinds.ts +++ b/src/main/keybinds.ts @@ -66,9 +66,7 @@ function openFIFO() { function cleanup() { try { unlinkSync(socketFile); - } catch (err) { - console.error("Failed to remove mkfifo file:", err); - } + } catch (err) {} } process.on("exit", cleanup); diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 8216db5..a7c2a16 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -31,7 +31,7 @@ import { DATA_DIR, DEFAULT_HEIGHT, DEFAULT_WIDTH, - isWayland, + isLinux, MessageBoxChoice, MIN_HEIGHT, MIN_WIDTH, @@ -537,5 +537,5 @@ export async function createWindows() { }); initArRPC(); - if (isWayland) initKeybinds(); + if (isLinux) initKeybinds(); } diff --git a/src/renderer/index.ts b/src/renderer/index.ts index fb18b06..6296d0a 100644 --- a/src/renderer/index.ts +++ b/src/renderer/index.ts @@ -13,6 +13,8 @@ import "./arrpc"; export * as Components from "./components"; +import { findByPropsLazy } from "@vencord/types/webpack"; + import SettingsUi from "./components/settings/Settings"; import { VesktopLogger } from "./logger"; import { Settings } from "./settings";