Open dkg opened 5 months ago
Thanks even I didn't know that. Yeah it makes perfect sense that cache data should live in their own home not someone else's.
@Simon-Laux Who is in charge of Cache? I mean what part of Desktop?
electron / main process code is, not sure yet how to change that, might be electron api that we call on startup (like a chrome cli switch, or standard electron api), might be an env var, or electron-builder config. or if we are unlucky it's an upstream issue in electron.
There is an old issue still unsolved but still active discussed: https://github.com/electron/electron/issues/8124 and a project related to that problem: https://github.com/danisztls/ephemeral
I am testing DeltaChat 1.46.1 on Debian stable (12.5).
It looks to me like DeltaChat is storing configuration information, application state, application data, and ephemeral (cached) material all within
~/.config/DeltaChat
.The XDG basedir spec identifies
~/.config
(as$XDG_CONFIG_HOME
) specifically for "user-specific configuration". However, i see at least two things stored here that are definitely not local configuration:~/.config/DeltaChat/logs/
(these should probably be logged to the system's journal)~/.config/DeltaChat/{Cache,GPUCache,Code Cache,DawnWebGPUCache,DawnGraphiteCache}
(these should probably live in$XDG_CACHE_HOME/DeltaChat
, or~/.cache/DeltaChat
if$XDG_CACHE_HOME
is unset)Using the XDG basedirs will make the application integrate more smoothly with arbitrary machine setups.