From 9f59794c7d394004c489641a68a077b71d8dc80c Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 5 Jun 2020 20:00:49 +0200 Subject: [PATCH] File permission is now set to 770 --- app.py | 3 ++- deemix_gui.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 8062243..11a51c3 100644 --- a/app.py +++ b/app.py @@ -7,7 +7,7 @@ from deemix.utils.localpaths import getConfigFolder import os.path as path import json -from os import remove +from os import remove, chmod settings = {} spotifyHelper = None @@ -42,6 +42,7 @@ def shutdown(interface=None): 'queueComplete': queueComplete, 'queueList': resetQueueItems(queueList, queue) }, f) + chmod(path.join(configFolder, 'queue.json'), 0o770) cancelAllDownloads(interface) if interface: interface.send("toast", {'msg': "Server is closed."}) diff --git a/deemix_gui.py b/deemix_gui.py index b821fc7..a29487b 100644 --- a/deemix_gui.py +++ b/deemix_gui.py @@ -4,6 +4,7 @@ import webview from threading import Thread, Lock import sys import os.path as path +from os import chmod from time import sleep from server import run_server from http.client import HTTPConnection @@ -34,6 +35,7 @@ def save_position(): h = window.height with open(path.join(configFolder, '.UIposition'), 'w') as f: f.write("|".join([str(x),str(y),str(w),str(h)])) + chmod(path.join(configFolder, '.UIposition'), 0o770) if __name__ == '__main__': url = "127.0.0.1"