DioxusLabs / DioxusLabs/dioxus
XDG_DATA_HOME is being polluted when developing Dioxus Desktop app
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
[Context](https://discord.com/channels/899851952891002890/936277970644000778/1395387579754483722)
After more than a week of development, I finished my app, but at some point looked into `XDG_DATA_HOME` and found 210 directories (each 12 KiB) that has `mediakeys`, `storage`, and `hsts-storage.sqlite`. That's awful that I have to separately clean up a directory that is not meant for cache-like stuff. I `cc` (`cargo clean`), and I'm done. With desktop apps, it's not the case.
Actually, it looks like the same goes for `XDG_CACHE_HOME`.
**Steps To Reproduce**
Steps to reproduce the behavior:
- `dx new --subtemplate Bare-Bones -y -o default_platform=desktop testing-this`
- `cd testing-this`
- `dx serve`
- `testing-this-xxxxxxxx` dir appear upon success
**Expected behavior**
If this is required, keep it in some temporary, cleanable place.
**Screenshots**
**Environment:**
- Dioxus version: v0.7.0-alpha.3
- Rust version: 1.88.0
- OS info: NixOS 25.11
- App platform: desktop
**Questionnaire**
I'm interested in fixing this myself but don't know where to start.
I don't have time to fix this right now, but maybe later.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.