From 8145514dafb24374f34e8fb34ba4b06c00e50ed2 Mon Sep 17 00:00:00 2001 From: Alex Sim Date: Wed, 29 Dec 2021 23:14:37 +0100 Subject: [PATCH] Fix gfxstream_backend.dll not found error --- lib/apk_installer.dart | 2 +- lib/screens/wsa.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,