From 7a2ab7d8f30a6c2134a7f077388de225a9861712 Mon Sep 17 00:00:00 2001 From: Noureldeen Elsayed Date: Tue, 16 Jul 2024 15:08:16 -0700 Subject: [PATCH] initial commit --- .../buildOutputCleanup/buildOutputCleanup.lock | Bin 17 -> 17 bytes .../com/vectras/boxvidra/utils/BoxvidraUtils.java | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 23e765e732b54cd437b79c5ff4953a360186d837..b3254cd3733454ae1156b01cf7313cd2a523cd75 100644 GIT binary patch literal 17 VcmZRM+{~_^us}(i0Sq>C0{|XJ0`33+ literal 17 VcmZRM+{~_^us}(i0Sq=x1^^z-19boZ diff --git a/app/src/main/java/com/vectras/boxvidra/utils/BoxvidraUtils.java b/app/src/main/java/com/vectras/boxvidra/utils/BoxvidraUtils.java index 5af7022..1668a40 100644 --- a/app/src/main/java/com/vectras/boxvidra/utils/BoxvidraUtils.java +++ b/app/src/main/java/com/vectras/boxvidra/utils/BoxvidraUtils.java @@ -32,14 +32,14 @@ public static String BoxvidraCmdLine(Context context) { command.add("export " + var); } - command.add("export WINEDEBUG=+all"); + File prefixDir = new File(TermuxService.OPT_PATH + "/wine-prefixes/" + prefixName); + command.add("export DISPLAY=:0"); command.add("export PULSE_SERVER=tcp:127.0.0.1"); - command.add("export WINEPREFIX='" + TermuxService.OPT_PATH + "/wine-prefixes/" + prefixName + "'"); + command.add("export WINEPREFIX='" + prefixDir.getAbsolutePath() + "'"); command.add(";"); // Retrieve command options from JSON - File prefixDir = new File(TermuxService.OPT_PATH + "/wine-prefixes/" + prefixName); File optionsFile = new File(prefixDir, "options.json"); try { if (optionsFile.exists()) {