From 8b72a6cc368f19c898b86cd91576b45fcfe7c853 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 14 Nov 2023 00:09:26 -0700 Subject: [PATCH] address security feature of xfce --- live/9/x86_64/peridot/rocky-live-xfce.ks | 4 ++++ live/9/x86_64/prod/rocky-live-xfce.ks | 4 ++++ live/9/x86_64/stage/rocky-live-xfce.ks | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/live/9/x86_64/peridot/rocky-live-xfce.ks b/live/9/x86_64/peridot/rocky-live-xfce.ks index 2a56638..64d30e7 100644 --- a/live/9/x86_64/peridot/rocky-live-xfce.ks +++ b/live/9/x86_64/peridot/rocky-live-xfce.ks @@ -76,6 +76,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/prod/rocky-live-xfce.ks b/live/9/x86_64/prod/rocky-live-xfce.ks index 2a56638..64d30e7 100644 --- a/live/9/x86_64/prod/rocky-live-xfce.ks +++ b/live/9/x86_64/prod/rocky-live-xfce.ks @@ -76,6 +76,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/stage/rocky-live-xfce.ks b/live/9/x86_64/stage/rocky-live-xfce.ks index 2a56638..64d30e7 100644 --- a/live/9/x86_64/stage/rocky-live-xfce.ks +++ b/live/9/x86_64/stage/rocky-live-xfce.ks @@ -76,6 +76,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