typicode / user-startup Goto Github PK
View Code? Open in Web Editor NEWAuto start commands when you log in (cross-platform)
License: MIT License
Auto start commands when you log in (cross-platform)
License: MIT License
node_modules/user-startup/lib/startup/darwin.js
line 44:
cp.execSync('launchctl load ' + name);
must be
cp.execSync('launchctl load ' + file);
you load the service plist file, then you can start the service by name
Win64 crash...
you must copy win32.js to win64.js or just load the same file for both platforms
It appears at least on MS Defender and Symantec End Point security, the VBScript is ignored in the Startup folder.
There is a way to add a user-specific registry entry that doesn't require Admin to add a Windows startup process. This works with these AV programs running. To do this, I used the npm module winreg. If you'd be interested in a way to register a platform specific override for the platform strategy, and a new strategy, I can put together a pull request.
It may require an alternative 'export' style.
Thoughts?
I'm using this module to startup an script, but I found an error related to file permission.
I suggest add exec file permission to solve this problem, as I requested in #9
This error occured when trying to install and run hotel for the first time. Didn't post in hotel because it seems like a user-startup module error:
hotel start
/usr/local/lib/node_modules/hotel/node_modules/user-startup/lib/startup/darwin.js:34
cp.execSync('launchctl load ' + file);
^
TypeError: Object #<Object> has no method 'execSync'
at Object.create (/usr/local/lib/node_modules/hotel/node_modules/user-startup/lib/startup/darwin.js:34:6)
at Object.start (/usr/local/lib/node_modules/hotel/lib/cli/daemon.js:22:11)
at module.exports (/usr/local/lib/node_modules/hotel/lib/cli/index.js:32:19)
at Object.<anonymous> (/usr/local/lib/node_modules/hotel/bin/index.js:2:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
npm version: 1.4.21
node version: 0.10.30
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.