Skip to content

Extend the API with new methods #128

Description

@Oxalin

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions