address security feature of xfce

This commit is contained in:
Louis Abel 2023-11-14 00:10:35 -07:00
parent 2a4576f992
commit 98036f2598
Signed by: label
GPG Key ID: B37E62D143879B36
1 changed files with 4 additions and 0 deletions

View File

@ -383,6 +383,10 @@ chmod +x /home/liveuser/Desktop/liveinst.desktop
# move to anaconda - probably not required for XFCE.
mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
cat > ~liveuser/.profile << PROFILE_EOF
export XDG_DATA_DIRS="\\\${XDG_DATA_DIRS}:\\\${HOME}/Desktop"
PROFILE_EOF
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser