[bugfix] use system wine for nixos

This commit is contained in:
silentrald
2025-03-30 16:30:52 +08:00
parent 02ef273722
commit 6b07fdebe0
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -129,7 +129,12 @@ export class LinuxService {
return fs.pathExistsSync(protonPath) && fs.pathExistsSync(winePath);
}
public getWinePath(): string {
public async getWinePath(): Promise<string> {
if (await this.isNixOS()) {
// Use system wine for nixos
return "wine";
}
if (!this.staticConfig.has("proton-folder")) {
throw new Error("proton-folder variable not set");
}