Gum-Joe / 2Keys

A easy to setup second keyboard, designed for everyone.
GNU General Public License v3.0
11 stars 4 forks source link

Add to startup (once certain issues are fixed) #98

Open github-actions[bot] opened 4 years ago

github-actions[bot] commented 4 years ago

Add to startup (once certain issues are fixed)

if (config.controllerConfig.perms.addToStartup) {

twokeys.logger.substatus("Adding startup script launch.vbs to startup");

await twokeys.utils.symbolLinkToStartup(join(twokeys.properties.clientRoot, VM_LAUNCH_VBS_FILE_DEST));

}

https://github.com/Gum-Joe/2Keys/blob/2bc9ab3637736d71e0d6dee0f340558990873227/detectors/detector-desktop/controller/src/setup/client/newClient.ts#L45

    await updateVagrantFile(twokeys, config.controllerConfig);
    await updateVMLaunchFiles(twokeys, config.controllerConfig);
    // TODO: Add to startup (once certain issues are fixed)
    // if (config.controllerConfig.perms.addToStartup) {
    //  twokeys.logger.substatus("Adding startup script launch.vbs to startup");
    //  await twokeys.utils.symbolLinkToStartup(join(twokeys.properties.clientRoot, VM_LAUNCH_VBS_FILE_DEST));
    // }
    // TODO: Handle auto update of OS setup 
    twokeys.logger.warn("Adding to startup is currently disabled in this release due to VBox preventing host shut down if VM is not stopped.");
    // DONE!
    // 2: Adjust Ansible config
ndex 8a2ea3f..579b193 100644
++ b/detectors/detector-desktop/controller/src/setup/client/template-updates/vagrant.ts

09665763f75e74cab5b29d1d9af8b4ae99753b96