From c1041b99028172852433513783451277d73f4873 Mon Sep 17 00:00:00 2001 From: Michael Nguyen Date: Wed, 2 Aug 2017 12:34:04 -0500 Subject: [PATCH] fixed permissions bug --- mycroft/client/enclosure/display_manager.py | 3 +++ 1 file changed, 3 insertions(+) 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...")