Protect env var reading and update packages first in install script
Some checks failed
Doxygen / build (push) Waiting to run
Issues due date / Add labels to issues (push) Has been cancelled

This is required for a fresh install with WSL2 on Windows
This commit is contained in:
Gautier Hattenberger
2026-03-20 23:45:07 +01:00
parent bbb6eda3c5
commit de1b9f95a2
2 changed files with 15 additions and 2 deletions

View File

@@ -86,6 +86,16 @@ then
BASHRC_SOURCE_VENV=false
fi
# ── Update packages list ──────────────────────────────────────────────────
print_header "Step 0/3 — Update packages list"
if run_step "APT Update" sudo apt update; then
print_success "Packages list updated successfully"
else
exit 1
fi
# ── Install Qt dependencies ──────────────────────────────────────────────────

View File

@@ -4,8 +4,11 @@ import os
import sys
# Make sure to use Wayland for high DPI screens
if os.environ["XDG_SESSION_TYPE"] == "wayland":
os.environ["QT_QPA_PLATFORM"] = "wayland;xcb"
try:
if os.environ["XDG_SESSION_TYPE"] == "wayland":
os.environ["QT_QPA_PLATFORM"] = "wayland;xcb"
except:
pass
dirname = os.path.dirname(os.path.abspath(__file__))
PAPARAZZI_HOME = os.getenv("PAPARAZZI_HOME",dirname)