You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
This user on Reddit has an example of when using the first thing returned by XDG isn't a good idea. Perhaps we could check each path it returns and choose one based on some heuristic? Investigate...
The text was updated successfully, but these errors were encountered:
If I understand XDG Base Directory specification correctly, $XDG_DATA_DIRS is used to find application specific data like images or sound effects. If you don't want to add more functions, {get_,}app_{dir,root}(SharedData) could try to return directory where application specific subdir is already created (checking also $XDG_DATA_HOME). If more directories match, results could be filtered using app's binary path (on Linux you can use fs::read_link("/proc/self/exe") although it's not portable to other Unixes). For example, if application binary is in /usr/bin function should return /usr/share.
This doesn't solve issue with data_root(), but now you only need one additional function :).
This user on Reddit has an example of when using the first thing returned by XDG isn't a good idea. Perhaps we could check each path it returns and choose one based on some heuristic? Investigate...
The text was updated successfully, but these errors were encountered: