You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem Description
With Windows, you can use node's child_process exec to run the shutdown command and power the computer off, for example, if a long series of automated tasks has been left running overnight. On Mac and Linux this would need to be preceded by sudo, so it's not practical without breaking things, I believe.
Proposed Solution
Could some functions that instruct the OS to turn off or sleep be implemented as part od the API? Or does something like that already exist?
Alternatives Considered
I understand this topic may have security implications, but apps like Adobe Media Encoder do this, so there may be a way for the OS to allow this, right?
Additional Information
Thanks
The text was updated successfully, but these errors were encountered:
Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. This forum is for raising bugs or requesting new features, and for most questions about Electron there are a lot of more appropriate community options. There are helpful people in this Discord or the subreddit that should be willing to point you in the right direction.
Beyond that - I agree that the OS can do it, but this is something that should be done in e.g. a native Node.js module, and not a part of the core API.
Preflight Checklist
Problem Description
With Windows, you can use node's child_process exec to run the shutdown command and power the computer off, for example, if a long series of automated tasks has been left running overnight. On Mac and Linux this would need to be preceded by sudo, so it's not practical without breaking things, I believe.
Proposed Solution
Could some functions that instruct the OS to turn off or sleep be implemented as part od the API? Or does something like that already exist?
Alternatives Considered
I understand this topic may have security implications, but apps like Adobe Media Encoder do this, so there may be a way for the OS to allow this, right?
Additional Information
Thanks
The text was updated successfully, but these errors were encountered: