Merge pull request #67 from saveriomiroddi/fix_ubuntu_18.04.4_ubiquity_display_issues

Fix Ubuntu 18.04.4 display-related issues
This commit is contained in:
Saverio Miroddi 2020-02-26 16:28:04 +01:00 committed by GitHub
commit bb9c1f018a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,7 +731,12 @@ Proceed with the configuration as usual, then, at the partitioning stage:
whiptail --msgbox "$dialog_message" 30 100
fi
ubiquity --no-bootloader
# The display is restricted only to the owner (`user`), so we need to allow any user to access
# it.
#
sudo -u "$SUDO_USER" env DISPLAY=:0 xhost +
DISPLAY=:0 ubiquity --no-bootloader
swapoff -a
@ -767,8 +772,7 @@ Proceed with the configuration as usual, then, at the partitioning stage:
whiptail --msgbox "$dialog_message" 30 100
fi
# The display is restricted only to the owner (`user`), so we need to allow any user to access
# it.
# See install_operating_system().
#
sudo -u "$SUDO_USER" env DISPLAY=:0 xhost +