lunacookies / etcetera

An unopinionated Rust library for locating configuration, data and cache directories across platforms
Apache License 2.0
70 stars 7 forks source link

Consider making top_level_domain and author Option on MacOS #23

Closed tmpfs closed 3 hours ago

tmpfs commented 3 hours ago

Thanks for the library!

For GUI apps using the choose_native_strategy we don't always want the directory namespaced with top_level_domain and author.

I am looking to switch from app_dirs2 and I need to build a path that on MacOS that just uses the app_name for data_dir. Would you consider making these fields optional? I'd be happy to work on a PR if you think this was desirable.

tmpfs commented 3 hours ago

Probably simpler for me to fix up the paths manually to be backwards compatible with the app_dirs2 paths so will close this, sorry for the noise and feel free to re-open if you think this would be useful.