Open Toorero opened 1 year ago
@Toorero most of these files/directories are actually created by Chromium in these paths and I might not be able to replace them. Moreover, it might not be the best idea to overwrite the default behaviour from Chromium/Electron, as it would make its storage paths non-standard for WebCord when comparing to another Electron software – and there are some apps already detecting and utilizing Chromium paths on Linux like BleachBit to provide its functionality, so if WebCord would be an exception, it could break more stuff than actually fix.
I would recommend reporting in on Electron, which would not only fix it for WebCord, but also make any other Electron-based application work in the same way. As of myself, I will treat this issue ticket as lower-priority ones and possibly work on it during/after rewrite of the WebCord.
Problem description
If I list my
WebCord
folder saved inXDG_CONFIG_HOME
it shows a bunch of stuff that should clearly not be there according to the freedesktop (XDG) specificationThis is quite messy and not very maintainable. Improper storage will cause problems or require special handling to function properly:
Fix
Move the directories
Cache
,Code Cache
,GPUCache
,DawnCache
and theCacheStorage
of the service workers intoXDG_CACHE_HOME/WebCord
. There may be more "non-essential (cached) data" to be stored there but I'm not familiar what stores what. Also, other data like thewindowState
andCookies
could be moved into theXDG_STATE_HOME
.