Teamwork / node-auto-launch

Launch applications or executables at login (Mac, Windows, and Linux)
MIT License
946 stars 113 forks source link

Electron 2.0? Doesn't seem to work. #84

Closed Nantris closed 7 months ago

Nantris commented 6 years ago

The path option in Electron 2.0.x seems to return: TypeError: Path must be a string. Received undefined

Nantris commented 6 years ago

Specifically this error is coming from the isEnabled function on Windows. I have tried everything under the sun today to get this working... Any ideas would be greatly appreciated.

Nantris commented 6 years ago
[16:27:29.911] TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.join (path.js:501:7)
    at g (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:321590)
    at v.set (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:325593)
    at e.exports.enable (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:328314)
    at new Promise (<anonymous>)
    at Object.enable (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:328008)
    at e.exports.e.enable (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:329793)
    at e.i [as enable] (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:328775)
    at setAutoLaunch (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:346:331162)
    at t.value (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:451:246586)
    at lo (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:459:55778)
    at Do (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:459:65094)
    at fa (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:459:77144)
    at ha (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:459:77452)
    at Xa (file:///C:/Users/user/AppData/Local/Programs/myApp/resources/app.asar/dist/renderer.prod.js:459:81001)
Nantris commented 6 years ago

This might be due to this issue with the Node path module. https://github.com/nodejs/node/issues/21392

Oxalin commented 7 months ago

Closing. If this is still an issue with latest code and electron, let us know.