From 845414ee7165ee5a6de42c9eee7808ac25b7f860 Mon Sep 17 00:00:00 2001 From: seaninspace Date: Apr 04 2023 09:39:51 +0000 Subject: Add liveuser Desktop path to XDG_DATA_DIRS environment variable --- diff --git a/libexec/livesys/sessions.d/livesys-xfce b/libexec/livesys/sessions.d/livesys-xfce index 8628c1f..39e1374 100755 --- a/libexec/livesys/sessions.d/livesys-xfce +++ b/libexec/livesys/sessions.d/livesys-xfce @@ -45,3 +45,8 @@ 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 + +# liveuser desktop directory needs to be added to XDG_DATA_DIRS to be trusted (#2172854) +cat >> /etc/environment << FOE +XDG_DATA_DIRS="/usr/local/share/:/home/liveuser/Desktop/" +FOE