diff --git a/.github/workflows/checks.desktop-runtime-errors.yaml b/.github/workflows/checks.desktop-runtime-errors.yaml index 1c5a924e..809be73c 100644 --- a/.github/workflows/checks.desktop-runtime-errors.yaml +++ b/.github/workflows/checks.desktop-runtime-errors.yaml @@ -31,7 +31,7 @@ jobs: uses: ./.github/actions/install-imagemagick - name: Configure Ubuntu - if: contains(matrix.os, 'ubuntu') # macOS runner is missing Docker + if: contains(matrix.os, 'ubuntu') shell: bash run: |- sudo apt update @@ -61,11 +61,22 @@ jobs: # Install xdotool and xprop (from x11-utils) for window title capturing sudo apt install -y xdotool x11-utils + + # Workaround for Electron apps failing to initialize on Ubuntu 24.04 due to AppArmor restrictions + # Disables unprivileged user namespaces restriction to allow Electron apps to run + # Reference: https://github.com/electron/electron/issues/42510 + sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + + # Install Vulkan support + sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-tools + # Install additional X11 libraries + sudo apt-get install -y libgtk-3-0 libx11-xcb1 libxcb-dri3-0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxrandr2 libxss1 libxtst6 libnss3 - name: Test shell: bash run: |- export SCREENSHOT=true + export ELECTRON_DISABLE_SANDBOX=true npm run check:desktop - name: Upload screenshot