Public bug reported: I tried to set folder color for /etc, but the icon was not changed and I got this error:
Traceback (most recent call last): File "/usr/share/caja-python/extensions/folder-color.py", line 316, in _menu_activate_color item_path = urllib.unquote(each_item.get_uri()[7:]) File "/usr/share/caja-python/extensions/folder-color.py", line 96, in set_color self.restore_color(item_path) File "/usr/share/caja-python/extensions/folder-color.py", line 141, in restore_color self._refresh(item_path) File "/usr/share/caja-python/extensions/folder-color.py", line 145, in _refresh os.utime(item_path, None) OSError: [Errno 13] Permission denied: '/etc' Both nautilus and caja extensions have the same issue. I changed the os.utime line to the following code as a workaround. try: os.utime(item_path, None) except OSError: pass I just need to press F5 to refresh manually ** Affects: folder-color (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1821683 Title: Can not change folder color due to failure of os.utime() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/folder-color/+bug/1821683/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs