-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Electron-app root path detection #34
Conversation
(Bump) |
Hey @JBLatenight , sorry for taking so long to get around to looking at this. Can you give us a bit more information so we can try figure out why the wrong executable was being detected? For example your Electron Version, The original app path that was being detected and how or what you are using to built your app would be a great help. |
Hey @smithalan92 I've been on another project sorry, sure yes these paths turn up the wrong path. Am I missing something perhaps?
Each of these should resolve down to
Otherwise the startup path will point at the MacOS binary (instead of the app), resulting in a variety of bad things. Thoughts? |
@JBLatenight thanks for that.
Please list some. Thanks. |
Btw, when I { path: '/Users/xxx/d/vuee/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron' } But what we expect is // with a trailing arg
'..../Electron.app/Contents/MacOS/Electron app' Otherwise, a default electron app would be opened. |
As far as I know, it's fine to start an app using its inner executable |
@adam-lynch @JBLatenight This is a great request, as using the inner executable results in the macOS Login Item Preferences showing the inner executable instead of the legit application, which also has the deleterious side-effect of not displaying the icon within the list like all native apps. This is a usability issue when users want to remove the login item using system preferences. |
Any update on this getting merged? ended up here from #28 |
+1 for seeing this merged in. Right now MacOS launches the terminal on login to start my electron app. |
Since this is opened for more than an year I have forked @JBLatenight project and added the build to github so for those in need of it right now it's possible to do |
What's up @adam-lynch? |
Apologies, we've neglected this project a little bit. We're going to fix that though, see #64. I'm going to put in some time this Saturday. If there's any additional information that would make this easier to test / merge, let me know 👍 |
💥 thanks for that! @JBLatenight @lucasbento I don't know if you saw #64 but we're looking for people to help out with:
Would you be open to that? I can give you access. |
@adam-lynch: thank you for the proposal and it does seem good but I don't think I'm on my best to help much, so sorry. Thanks for the work on it, hopefully some good devs will come to help with it as well. |
I don't know if there's a more elegant way to do this, but our app was detecting the unix executable within the app package using this module when built for distribution.
The added line resolved, so that the app package itself was always selected.