const fs = require('fs'); log("MistyCore-Startup-Shell", "Starting user interface..."); if (!fs.existsSync("/User")) fs.mkdirSync("/User"); process.env.HOME = "/User"; global.uiProcess = require('child_process').spawn("/System/Library/Frameworks/NodeJS/MistyRuntime", [ "/System/Library/MistyCore/shell.js" ], { stdio: "inherit", cwd: "/User" }); log("MistyCore-Startup-Shell", "Started user interface");