diff --git a/mycroft/client/enclosure/display_manager.py b/mycroft/client/enclosure/display_manager.py index 64dc68515f..a582f15e5f 100644 --- a/mycroft/client/enclosure/display_manager.py +++ b/mycroft/client/enclosure/display_manager.py @@ -43,6 +43,7 @@ def _write_data(dictionary): if permission == "w+" and os.path.isdir(managerIPCDir) is False: os.makedirs(managerIPCDir) + os.chmod(managerIPCDir, 0777) try: with open(path, permission) as dispFile: @@ -62,6 +63,8 @@ def _write_data(dictionary): dispFile.write(json.dumps(data)) dispFile.truncate() + os.chmod(path, 0777) + except Exception as e: LOG.error(e) LOG.error("Error found in display manager file, deleting...")