mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 18:36:07 +00:00
File permission is now set to 770
This commit is contained in:
parent
b5e8f5c8de
commit
9f59794c7d
3
app.py
3
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."})
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue