microsoft / WSA

Developer-related issues and feature requests for Windows Subsystem for Android
MIT License
1.54k stars 836 forks source link

Close application from command #363

Open mad-jose opened 1 year ago

mad-jose commented 1 year ago

Is your feature request related to a problem? Please describe

Close application using command prompt

Describe the solution you'd like

WsaClient /close wsa://

Describe alternatives you've considered

show up the application in task manager

Please specify the version of Windows Subsystem for Android

2305.40000.6.0

kevinkieselbach commented 1 year ago

Are you asking for a command line option to close an app's windows or to force-terminate the app's processes? Note that although Android apps don't show up in Task Manager, we added an option to the WSA Settings "Apps" page to force terminate an Android app. Does that meet your needs?

sebbu2 commented 3 weeks ago

I think he asked for a command to stop/close/terminate a specific Android application (might be a service, without a window) from running, without closing all other Android application, and from the command line, meaning in an automatizable manner, for example from a .bat

For example, wsaClient /shutdown stops WSA