<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">Slack Version 4.15.0 5d7680b5e4c7d0ab1f4315edae52ef1f7e74f8bd@1620079581 (Production)</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">MacOS 10.13.6</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Electron stores caches in system caches folder as to avoid those files being backed up by TimeMachine</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Electron stores caches in ApplicationSupport causing tens of gigabytes of wasted backup per application</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Electron should store caches in /Users//Library/Caches// instead of /Users//Library/ApplicationSupport//Cache</p>
<ul dir="auto">
<li>Electron version: 1.3.9 (via Atom 1.12.6) and unknown (via Slack 2.3.2)</li>
<li>Operating system: Linux</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Files stored by Electron on behalf of electron apps, should follow the XDG Base Directory specification and place only config files in $XDG_CONFIG_HOME/ (default ~/.config/). cache and data files should be placed in XDG_CACHE_HOME (default: ~/.cache) and XDG_DATA_HOME (default: ~/.local/share) respectively.</p>
<p dir="auto"><a href="https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html" rel="nofollow">https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html</a></p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">As seen in Atom and Slack on Linux, they leave non-config files in ~/.config/Atom and ~/.config/Slack/ in particular, they leave folders such as "databases", "GPUCache", "Cache", "logs", and "Local Storage". Atom mention this as an Electron issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="99784635" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/8281" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/8281/hovercard" href="https://github.com/atom/atom/issues/8281">atom/atom#8281</a> ("where electron stores it's files").</p>
<p dir="auto">Could still be it's not Electron's fault that the apps store non-config files in these locations, but hopefully you know more than me here.</p>