wslutilities / wslu

A collection of utilities for Windows Subsystem for Linux
https://wslutiliti.es/wslu
GNU General Public License v3.0
3.44k stars 155 forks source link

USE XDG_CACHE instead of ~/.config/wslu #290

Closed woutervh closed 7 months ago

woutervh commented 1 year ago

Windows Version

Windows 11

Windows Build Number

latest

WSL Version

WSL 2

Distro Version

Almalinux

WSL Utilities Version

wslu v4.1.1-1

Describe the bug

files are being created in a hardcoded ~/.config/wslu:

but these are not config-files. rather cache-files or state

To avoid hardcoding: better use: XDG_CONFIG_HOME (default to ~/.config)

or better: XDG_STATE_HOME (default to~/.local/state) XDG_CACHE_HOME (default to~/.cache)

Steps to Reproduce

ls ~/.config/wlu

Expected behavior

ls ~/.cache/wlu

Additional context

No response

Code of Conduct

patrick330602 commented 11 months ago

Thanks for the report and currently working on it.