mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #201] best way to implement auto launch on startup? #135
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yrik on GitHub (Feb 11, 2019).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/201
Hello! Thank you for the awesome package.
I'm developing personal activity tracker that would help to remember what I was working some time before and help to prepare invoices. The app should start tracking automatically when the computer starts. It should remain in the tray.
I have found a package auto-launch, but It's not clear how to specify a path to the running app. I use electron packager. The package automatically takes a
process.execPathfor the electron app. Should it do the same for the react-proton app as well?Offtop: Does anyone know how to rename the app in the mac os menu after it's being packaged? It shows nodejs instead of the name I used in the package.js.
@mischnic commented on GitHub (Feb 13, 2019):
At least for macOS, this path should work:
path.dirname(process.execPath) + "/YOUR_APP_NAME"I don't know about Linux or Windows.
For me, the output generated by electron-builder has this title set to the
namespecified in package.json@yrik commented on GitHub (Mar 9, 2019):
Thanks.
Eventually, it works for me for mac too with following code