Fix Firefox display access when configure.sh runs via su

Pass DISPLAY and WAYLAND_DISPLAY explicitly through the su call in
install.sh so Firefox can connect to the user's display session.
Remove the now-unnecessary DISPLAY=:0 fallback from get_nc_token.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-29 18:02:20 +02:00
parent a5c8d596fa
commit 9cb2977527
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -102,9 +102,6 @@ get_nc_token() {
REQTOKEN=$( echo "${REQJSON}" | grep -oP '(?<="token":")[^"]+(?=")' )
REQURL=$( echo "${REQJSON}" | grep -oP '(?<="login":")[^"]+(?=")' )
if [[ -z ${DISPLAY} ]]; then
export DISPLAY=:0
fi
/usr/bin/firefox "${REQURL}" &
for i in {1..200}