Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Make the desktop file permissions check much more robust.
Browse files Browse the repository at this point in the history
Make files 644 and dirs 755
  • Loading branch information
beanpole135 committed Feb 7, 2020
1 parent 89153e9 commit ea68019
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions void-desktop-files/usr/bin/trident-desktopinit
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ Session=/usr/share/xsessions/Lumina-DE.desktop
fi

#Ensure that specific dir structures are readable by all users
dirlist="/etc/pulse /usr/share/wallpapers"
dirlist="/etc/pulse /etc/trident-login.d /usr/share/wallpapers"
for dir in ${dirlist}
do
chmod -R +044 "${dir}"
find "${dir}" -type d -exec chmod 755 {} ";"
find "${dir}" -type f -exec chmod 644 {} ";"
done

# Enable required services
Expand Down

0 comments on commit ea68019

Please sign in to comment.