Skip to content
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

Extend the API with new methods #128

Open
Oxalin opened this issue Apr 10, 2024 · 0 comments
Open

Extend the API with new methods #128

Oxalin opened this issue Apr 10, 2024 · 0 comments

Comments

@Oxalin
Copy link
Collaborator

Oxalin commented Apr 10, 2024

Since we are support specifically the "hidden" argument, and because we support adding extra arguments (whatever please the developers), we could extend the API to provide a way to get some values.

Would proposing the following methods make sense:

  • openAsHidden() which would return a boolean telling wheteher the app is set to be launched as hidden/in background. It could mimic the method proposed by electron and extend it to all supported platforms.
  • getArguments() (or getExtraArguments()) would return an array of all the arguments sent to the app at autolaunch.
  • toggle() to take care of the logic to enable ou disable autolaunch
  • extend disable() method to remove enabled/disabled state in Windows registry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant