Skip to content

Commit

Permalink
Better fix for #172
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui authored Aug 19, 2016
1 parent 4f9e0ed commit b57f94d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
theme = Gtk.IconTheme.get_default()
default_icon_size = 22
backup_ignore_list = ["hexchat"]
chmod_ignore_list = ["/", "/home/"]
chmod_ignore_list = ["", "home"]
fixed_icons = []
reverted_apps = []
script_errors = []
Expand Down Expand Up @@ -151,7 +151,7 @@ def mchown(directory):
dir_path = "/"
for directory in path_list:
dir_path += str(directory) + "/"
if dir_path is not in chmod_ignore_list:
if dir_path.replace("/", "") is not in chmod_ignore_list:
if path.exists(dir_path):
chown(dir_path, int(getenv("SUDO_UID")), int(getenv("SUDO_GID")))
elif path.isfile(dir_path.rstrip("/")):
Expand Down

0 comments on commit b57f94d

Please sign in to comment.