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

[Feature Request] Background "Commands" with Sunshine Ctx #397

Open
jdkang opened this issue Oct 8, 2024 · 0 comments
Open

[Feature Request] Background "Commands" with Sunshine Ctx #397

jdkang opened this issue Oct 8, 2024 · 0 comments

Comments

@jdkang
Copy link

jdkang commented Oct 8, 2024

Background

Many people use Sunshine with various scripts plugged into the onfig.do_cmd / onfig.undo_cmd, and wrapping the executable itself in a .ps1 script (e.g. MonitorSwapAutomation).

Feature Request

I would like to request a feature where the user can add a "background" task much like the pre/post commands that runs constantly and has sunshine context (e.g. an ENV variable SUNSHINE_CURRENT_SESSIONS, SUNSHINE_LAST_SESSION_LOGOUT, SUNSHINE_IS_PROCESSING_SESSIONS, etc).

The rationale is one can write more robust monitor/cleanup scripts than can currently be written with pre/post operations.

Example Use Case

For example, MonitorSwapAutomation can leave the user with a busted main monitor if say the game crashes into a "debug report" state or other race conditions. This has to be resolved by using "Desktop" on Moonlight and manually fixing the displays with a script/GUI.

This feature would allow the system to "self-heal" itself if it realized no Sunshine sessions h ad been logged in for a certain amount of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant