mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 05:35:09 +00:00
IPC and Linux check-ups fixes
This commit is contained in:
parent
f82c1a4d4e
commit
9c9b577f52
4 changed files with 6 additions and 5 deletions
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue