mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 18:36:07 +00:00
Added subfolder for chrome cache, will reset local settings on windows
This commit is contained in:
parent
9fd5243d88
commit
8a2886faf2
|
@ -4,6 +4,7 @@ import webview
|
||||||
from threading import Thread, Lock
|
from threading import Thread, Lock
|
||||||
import sys
|
import sys
|
||||||
import os.path as path
|
import os.path as path
|
||||||
|
from os import makedirs
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from server import run_server
|
from server import run_server
|
||||||
from http.client import HTTPConnection
|
from http.client import HTTPConnection
|
||||||
|
@ -84,9 +85,11 @@ if __name__ == '__main__':
|
||||||
window.closing += save_position
|
window.closing += save_position
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
from webview.platforms.cef import settings
|
from webview.platforms.cef import settings
|
||||||
|
cacheFolder = path.join(configFolder, 'cefCache')
|
||||||
|
makedirs(cacheFolder, exist_ok=True)
|
||||||
settings.update({
|
settings.update({
|
||||||
'persist_session_cookies': True,
|
'persist_session_cookies': True,
|
||||||
'cache_path': configFolder
|
'cache_path': cacheFolder
|
||||||
})
|
})
|
||||||
webview.start(gui='cef')
|
webview.start(gui='cef')
|
||||||
elif sys.platform == "linux":
|
elif sys.platform == "linux":
|
||||||
|
|
Loading…
Reference in a new issue