mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-02-04 00:54:33 +00:00
[Feature request] XDG Base Directory Specification on *nix systems #1027
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eppic6502 on GitHub (Nov 7, 2025).
Originally assigned to: @claunia on GitHub.
Type
Other...
Description
I have noticed that on macOS (and likely Linux), aaru (6.0.0-alpha.13+c55a3354) will create a .net folder in the users home directory to store various dynamic libraries. It would nice if aaru could check if XDG directories are configured and only use the home directory as a fallback.
Context
XDG directories are a standardised way to store configuration, cache and other application data on modern *nix systems. Using $XDG_DATA_HOME/aaru by default and $HOME as a fallback would follow general convention and keep the user directory tidy.
Documentation
https://specifications.freedesktop.org/basedir/latest/
@claunia commented on GitHub (Nov 7, 2025):
We do not create such folders, create an issue on https://github.com/dotnet/dotnet
@eppic6502 commented on GitHub (Nov 7, 2025):
Sorry, but the directory is created upon launching aaru and the files literally start with "libAaru".
Never mind that dotnet by itself only uses .dotnet and .nuget in the home directory.
@claunia commented on GitHub (Nov 7, 2025):
Those files are the native external libraries that due to how dynamic linking work on macOS need to be separate files from the main executable so they need to be decompressed and extracted by the entrypoint loader so the system dynamic linker can find them.
That is completely outside of our control, it's not something we can configure.
Why have dotnet chosen $HOME instead of
~/Library/Application Supportas should be the convention on macOS is outside of my knowledge as well.All of our configuration is managed in
Aaru.Settingsand we use the registry on Windows, a plist inApplication Supportin macOS and XDG in Linux as it should be.