@guidepup/setup
Version:
Setup your environment for screen-reader automation.
14 lines (13 loc) • 546 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.disableSplashScreenSystemDefaults = disableSplashScreenSystemDefaults;
const child_process_1 = require("child_process");
const errors_1 = require("../errors");
function disableSplashScreenSystemDefaults() {
try {
(0, child_process_1.execSync)("defaults write com.apple.VoiceOverTraining doNotShowSplashScreen -bool true");
}
catch (e) {
throw new Error(`${errors_1.ERR_MACOS_UNABLE_UPDATE_SYSTEM_DEFAULTS}\n\n${e.message}`);
}
}