From 10dc5c517049b6c4b3881e32d47b129ff62eaec9 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 2 Jan 2025 16:06:43 +0000 Subject: [PATCH] Maybe fix. --- .github/workflows/test-push.yml | 3 --- .../net/fabricmc/loom/task/prod/ClientProductionRunTask.java | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-push.yml b/.github/workflows/test-push.yml index 72a04e767..20606c8a4 100644 --- a/.github/workflows/test-push.yml +++ b/.github/workflows/test-push.yml @@ -64,9 +64,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Xvfb - if: ${{ matrix.test == 'net.fabricmc.loom.test.integration.RunConfigTest' }} - run: sudo apt-get install -y xvfb - name: setup jdk uses: actions/setup-java@v4 with: diff --git a/src/main/java/net/fabricmc/loom/task/prod/ClientProductionRunTask.java b/src/main/java/net/fabricmc/loom/task/prod/ClientProductionRunTask.java index bc9b447f8..01779a857 100644 --- a/src/main/java/net/fabricmc/loom/task/prod/ClientProductionRunTask.java +++ b/src/main/java/net/fabricmc/loom/task/prod/ClientProductionRunTask.java @@ -93,7 +93,10 @@ protected void configureCommand(ExecSpec exec) { throw new UnsupportedOperationException("XVFB is only supported on Linux"); } - exec.commandLine("/usr/bin/xvfb-run", "-a"); + exec.commandLine("/usr/bin/xvfb-run"); + exec.args("-a", getJavaLauncher().get().getExecutablePath()); + + return; } super.configureCommand(exec);