[Feature request] XDG Base Directory Specification on *nix systems #1027

Closed
opened 2026-01-29 15:39:14 +00:00 by claunia · 3 comments
Owner

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/

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 added the upstream label 2026-01-29 15:39:14 +00:00
Author
Owner

@claunia commented on GitHub (Nov 7, 2025):

We do not create such folders, create an issue on https://github.com/dotnet/dotnet

@claunia commented on GitHub (Nov 7, 2025): We do not create such folders, create an issue on https://github.com/dotnet/dotnet
Author
Owner

@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.

@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.
Author
Owner

@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 Support as should be the convention on macOS is outside of my knowledge as well.

All of our configuration is managed in Aaru.Settings and we use the registry on Windows, a plist in Application Support in macOS and XDG in Linux as it should be.

@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 Support` as should be the convention on macOS is outside of my knowledge as well. All of our configuration is managed in `Aaru.Settings` and we use the registry on Windows, a plist in `Application Support` in macOS and XDG in Linux as it should be.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#1027