moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
3.54k stars 545 forks source link

[Feature request]: Quit app on host PC after ending stream #1380

Open jorys-paulin opened 3 days ago

jorys-paulin commented 3 days ago

Is your feature request related to a problem? Please describe.

Moonlight PC has a setting option that allows to automatically quit the running application on the host when the stream ends, but this option is currently not available on Moonlight Android. Adding this option would help people that have been requesting it, and would bring Moonlight Android closer in feature-parity with Moonlight PC.

Describe the solution you'd like

Have an option in the settings named "Quit app on host PC after ending stream", just like in Moonlight PC, that when enabled automatically quits the running app on the host when the stream stops.

Describe alternatives you've considered

An alternative is to manually close the app when Moonlight gets back to the app grid (this is what is done currently), which it might not when using the app shortcut feature.

Screenshots

Link to a related Fider post: https://ideas.moonlight-stream.org/posts/64/option-to-quit-session-automatically-after-closing-moonlight-client-app-on-android I've also seen this request being posted on the Discord server, but couldn't find it again.

jorys-paulin commented 3 days ago

I've tried implementing this feature myself, but I am not familiar enough with Java and the codebase to make it work. I've been able to register the setting itself but not the actual functionality.