From b2807be79867ae12adcd0d6d5680a9fd0aae71bf Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 12 Apr 2021 11:45:59 +0300 Subject: [PATCH] Test patched GDM --- main.ks | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.ks b/main.ks index 75418d8..b3ea9ca 100644 --- a/main.ks +++ b/main.ks @@ -65,13 +65,6 @@ find /boot -name 'initrd-*' -print # https://help.gnome.org/admin/gdm/stable/configuration.html.en#sessionconfig # https://help.gnome.org/admin/system-admin-guide/stable/login-automatic.html.en cat > /etc/anaconda-scripts.d/livecd-init/rosa-xfce-gdm-setup.sh << 'EOF' -echo "[org.freedesktop.DisplayManager.AccountsService] -BackgroundFile='/usr/share/backgrounds/xfce/2.jpg' - -[User] -Language=ru_RU.utf8 -XSession=xfce -SystemAccount=false" > /var/lib/AccountsService/users/live echo "[daemon] AutomaticLoginEnable=True AutomaticLogin=live @@ -81,6 +74,13 @@ chmod +x /etc/anaconda-scripts.d/livecd-init/rosa-xfce-gdm-setup.sh ( cd /etc/systemd/system && ln -sf gdm.service display-manager.service ) +# GDM is patched to read this environmental variable +mkdir -p /etc/systemd/system/gdm.service.d/ +cat > /etc/systemd/system/gdm.service.d/gdm-default-session.conf << 'EOF' +[Service] +Environment=GDM_DEFAULT_SESSION=xfce +EOF + %end # debug