Izurii / easy-auto-launch

GNU General Public License v3.0
5 stars 4 forks source link

Name & Exec path are not working for Linux #6

Closed ethielknd closed 2 years ago

ethielknd commented 2 years ago

Hello, I have an Electron app build for Linux, the options that I pass to auto-launch when instancing the object are:

new AutoLaunch({
    name: 'My name app',
    path: !process.env.APPIMAGE ? app.getAppPath() : process.env.APPIMAGE,
})

app.getAppPath() is for .deb When I check the desktop entry, the Exec points to /opt/My name app/resourses/app.asar and when I shutdown and start again the laptop, the app doesn't launch. I would like to know if the path is correct or I'm missing something else

Also, the name is not working, the desktop entry file takes app.asar as name instead of the one that I pass as param

ethielknd commented 2 years ago

Ok so I fixed this by changing the app.getAppPath() to app.getPath('exe'), the name was actually working after that change