UNPKG

bond-wm

Version:

An X Window Manager built on web technologies.

34 lines (26 loc) 888 B
import { app, dialog } from "electron"; import { startWindowManager } from "./wm"; import { loggingEnabled } from "./args"; import { log } from "./log"; import { electronIpcLog } from "./electronLog"; // Disable error dialogs by override dialog.showErrorBox = function (title, content) { console.error(`${title}\n${content}`); }; log("bond-wm main"); log("user data path: ", app.getPath("userData")); if (loggingEnabled()) { electronIpcLog(log); } // After electron 37 update, this seems to have helped prevent white desktop screen issues. app.commandLine.appendSwitch("disable-gpu"); // Possibly could help with transparency? // app.commandLine.appendSwitch("enable-transparent-visuals"); // app.disableHardwareAcceleration(); // Quit when all windows are closed. app.on("window-all-closed", () => { app.quit(); }); app.on("ready", async () => { startWindowManager(); });