diff --git a/lib/apk_installer.dart b/lib/apk_installer.dart index 81edf1c..6d1c527 100644 --- a/lib/apk_installer.dart +++ b/lib/apk_installer.dart @@ -86,7 +86,7 @@ class _ApkInstallerState extends State { if (autostartWSA) { startingWSA = true; - Process.run(Env.WSA_EXECUTABLE, []).onError((_, __){ + Process.run(Env.WSA_EXECUTABLE, [], workingDirectory: Env.WSA_SYSTEM_PATH).onError((_, __){ setState(() {startingWSA = false;}); return ProcessResult(-1, -1, null, null); }); diff --git a/lib/screens/wsa.dart b/lib/screens/wsa.dart index 52a71ff..5ae6385 100644 --- a/lib/screens/wsa.dart +++ b/lib/screens/wsa.dart @@ -67,7 +67,7 @@ class _ScreenWSAState extends State { content: Wrap(crossAxisAlignment: WrapCrossAlignment.center, children: [ Text(connectionStatus.desc), const SizedBox(width: 15.0), - if (connectionStatus.type == ConnectionStatus.ARRESTED) Button(child: const Text("Turn on"), onPressed: () => Process.run(Env.WSA_EXECUTABLE, [])) + if (connectionStatus.type == ConnectionStatus.ARRESTED) Button(child: const Text("Turn on"), onPressed: () => Process.run(Env.WSA_EXECUTABLE, [], workingDirectory: Env.WSA_SYSTEM_PATH)) ]), isLong: true, severity: connectionStatus.severity,