From 72711f2ee07363ca253b05741028a6c2f5e763ef Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 16 Nov 2023 03:49:42 -0700 Subject: [PATCH] set default xfce background --- Rocky-9-XFCE.ks | 18 +++++++++++++++++ live/9/aarch64/peridot/rocky-live-xfce.ks | 24 +++++++++++++++++++++++ live/9/aarch64/prod/rocky-live-xfce.ks | 24 +++++++++++++++++++++++ live/9/aarch64/stage/rocky-live-xfce.ks | 24 +++++++++++++++++++++++ live/9/ppc64le/peridot/rocky-live-xfce.ks | 23 ++++++++++++++++++++++ live/9/ppc64le/prod/rocky-live-xfce.ks | 23 ++++++++++++++++++++++ live/9/ppc64le/stage/rocky-live-xfce.ks | 23 ++++++++++++++++++++++ live/9/x86_64/peridot/rocky-live-xfce.ks | 19 ++++++++++++++++++ live/9/x86_64/prod/rocky-live-xfce.ks | 19 ++++++++++++++++++ live/9/x86_64/stage/rocky-live-xfce.ks | 19 ++++++++++++++++++ 10 files changed, 216 insertions(+) diff --git a/Rocky-9-XFCE.ks b/Rocky-9-XFCE.ks index 8168534..55c2042 100644 --- a/Rocky-9-XFCE.ks +++ b/Rocky-9-XFCE.ks @@ -387,6 +387,24 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop diff --git a/live/9/aarch64/peridot/rocky-live-xfce.ks b/live/9/aarch64/peridot/rocky-live-xfce.ks index 072ace8..54f1429 100644 --- a/live/9/aarch64/peridot/rocky-live-xfce.ks +++ b/live/9/aarch64/peridot/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop @@ -76,12 +95,17 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop # and mark it as executable (new Xfce security feature) chmod +x /home/liveuser/Desktop/liveinst.desktop +cat > ~liveuser/.profile << PROFILE_EOF +export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop" +PROFILE_EOF + # move to anaconda - probably not required for XFCE. mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop # this goes at the end after all other changes. chown -R liveuser:liveuser /home/liveuser restorecon -R /home/liveuser +#restorecon -R / EOF diff --git a/live/9/aarch64/prod/rocky-live-xfce.ks b/live/9/aarch64/prod/rocky-live-xfce.ks index 072ace8..54f1429 100644 --- a/live/9/aarch64/prod/rocky-live-xfce.ks +++ b/live/9/aarch64/prod/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop @@ -76,12 +95,17 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop # and mark it as executable (new Xfce security feature) chmod +x /home/liveuser/Desktop/liveinst.desktop +cat > ~liveuser/.profile << PROFILE_EOF +export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop" +PROFILE_EOF + # move to anaconda - probably not required for XFCE. mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop # this goes at the end after all other changes. chown -R liveuser:liveuser /home/liveuser restorecon -R /home/liveuser +#restorecon -R / EOF diff --git a/live/9/aarch64/stage/rocky-live-xfce.ks b/live/9/aarch64/stage/rocky-live-xfce.ks index 072ace8..54f1429 100644 --- a/live/9/aarch64/stage/rocky-live-xfce.ks +++ b/live/9/aarch64/stage/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop @@ -76,12 +95,17 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop # and mark it as executable (new Xfce security feature) chmod +x /home/liveuser/Desktop/liveinst.desktop +cat > ~liveuser/.profile << PROFILE_EOF +export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop" +PROFILE_EOF + # move to anaconda - probably not required for XFCE. mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop # this goes at the end after all other changes. chown -R liveuser:liveuser /home/liveuser restorecon -R /home/liveuser +#restorecon -R / EOF diff --git a/live/9/ppc64le/peridot/rocky-live-xfce.ks b/live/9/ppc64le/peridot/rocky-live-xfce.ks index 2a56638..54f1429 100644 --- a/live/9/ppc64le/peridot/rocky-live-xfce.ks +++ b/live/9/ppc64le/peridot/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop @@ -76,6 +95,10 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop # and mark it as executable (new Xfce security feature) chmod +x /home/liveuser/Desktop/liveinst.desktop +cat > ~liveuser/.profile << PROFILE_EOF +export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop" +PROFILE_EOF + # move to anaconda - probably not required for XFCE. mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop diff --git a/live/9/ppc64le/prod/rocky-live-xfce.ks b/live/9/ppc64le/prod/rocky-live-xfce.ks index 2a56638..54f1429 100644 --- a/live/9/ppc64le/prod/rocky-live-xfce.ks +++ b/live/9/ppc64le/prod/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop @@ -76,6 +95,10 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop # and mark it as executable (new Xfce security feature) chmod +x /home/liveuser/Desktop/liveinst.desktop +cat > ~liveuser/.profile << PROFILE_EOF +export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop" +PROFILE_EOF + # move to anaconda - probably not required for XFCE. mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop diff --git a/live/9/ppc64le/stage/rocky-live-xfce.ks b/live/9/ppc64le/stage/rocky-live-xfce.ks index 2a56638..54f1429 100644 --- a/live/9/ppc64le/stage/rocky-live-xfce.ks +++ b/live/9/ppc64le/stage/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop @@ -76,6 +95,10 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop # and mark it as executable (new Xfce security feature) chmod +x /home/liveuser/Desktop/liveinst.desktop +cat > ~liveuser/.profile << PROFILE_EOF +export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop" +PROFILE_EOF + # move to anaconda - probably not required for XFCE. mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop diff --git a/live/9/x86_64/peridot/rocky-live-xfce.ks b/live/9/x86_64/peridot/rocky-live-xfce.ks index 64d30e7..54f1429 100644 --- a/live/9/x86_64/peridot/rocky-live-xfce.ks +++ b/live/9/x86_64/peridot/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop diff --git a/live/9/x86_64/prod/rocky-live-xfce.ks b/live/9/x86_64/prod/rocky-live-xfce.ks index 64d30e7..54f1429 100644 --- a/live/9/x86_64/prod/rocky-live-xfce.ks +++ b/live/9/x86_64/prod/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop diff --git a/live/9/x86_64/stage/rocky-live-xfce.ks b/live/9/x86_64/stage/rocky-live-xfce.ks index 64d30e7..54f1429 100644 --- a/live/9/x86_64/stage/rocky-live-xfce.ks +++ b/live/9/x86_64/stage/rocky-live-xfce.ks @@ -59,6 +59,25 @@ sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/anaconda/gnome/fedora-welcome #sed -i "s/org.fedoraproject.AnacondaInstaller/fedora-logo-icon/g" /usr/share/applications/liveinst.desktop +# set default background +cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml < + + + + + + + + + + + + + + +EOF + # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop