Skip to content

Commit

Permalink
Spices.py: fix file permissions durring install
Browse files Browse the repository at this point in the history
Because the files are zipped, and then unziped, the execute bit is getting lost when xlets are installed through cinnamon-settings, which in turn causes certain included scripts to not run. This sets the permissions manually on all files to ensure that everything has the necessary permissions.
  • Loading branch information
collinss authored and mtwebster committed May 5, 2018
1 parent 8447c52 commit 42b1e53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ def install_from_folder(self, folder, uuid, from_spices=False):
contents = os.listdir(folder)

if not self.themes:
# ensure proper file permissions
for root, dirs, files in os.walk(folder):
for file in files:
os.chmod(os.path.join(root, file), 0o755)

# Install spice localization files, if any
if 'po' in contents:
po_dir = os.path.join(folder, 'po')
Expand Down

0 comments on commit 42b1e53

Please sign in to comment.