From bb16ef67ba600dbfdf6ecdaf29ae352ff07933a6 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 9 Aug 2022 16:08:39 +0200 Subject: [PATCH] Allow Subiquity to run setxkbmap (#1021) Subiquity has been changed to run setxkbmap as the ubuntu user. The last missing piece is to set the DISPLAY environment variable to let setxkbmap access the display. Fixes: #832 --- snap/local/subiquity-server | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snap/local/subiquity-server b/snap/local/subiquity-server index 26e2b94275..2baf8617c0 100755 --- a/snap/local/subiquity-server +++ b/snap/local/subiquity-server @@ -18,6 +18,9 @@ export PY3OR2_PYTHON=$PYTHON # sbin for bundled tools such as ntfsresize export PATH=$SNAP/bin:$SNAP/sbin:$PATH +# allow subiquity to run setxkbmap +export DISPLAY=:0 + # base directory for subiquity to locate resources export SUBIQUITY_ROOT=$SNAP/bin/subiquity