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
The code here doesn't check for XDG_CONFIG_HOME if running macOS.
So I know that XDG is technically not a thing on macOS. But it is not uncommon for people to set up a similar system, using application-specific environment variables and at some level the XDG variables to accomplish the same thing.
For example, Git saves to the XDG_CONFIG_HOME if it is set on my Macbook.
It would be rather helpful for us if you did the same. It makes it easier for me to switch from macOS to Linux, which I want to be able to do easily.
Reacted by Aru Sahni, Ben Creasy, Thomas Roten, Jon Dufresne, Ihor Urazov, 0az, Gilad Peleg, Alex Bielen, Shay Palachy-Affek, Ryan Delaney and 12 more
I honestly, it seems like it would be ideal if appdirs listened to XDG_*_HOME for all operating systems.
Even if XDG isn't specified for macos, for almost all tools I can set (expecting it to work) XDG_CONFIG_HOME, and therefore I can commit that dir to my dotfiles. Now, any library which uses appdirs forces me to go back to using symlinks and yields a worse experience.
In my mind, even if it doesn't make the most sense for someone to set it on windows, it at least gives everyone an opportunity to customize the config location, as opposed to unconditionally having it set to a specific location (but only on certain operating systems). And ultimately in the default case where it's not being set, you get the same existing behavior.
Reacted by 0az, Shay Palachy-Affek, aaaxx, chris montgomery, Julie Jones, Riedel, Franck Rasolo, Brett Monroe, Sandeep Dilip, Ken Kundert and 1 more
Given my understanding of the reasoning for the way it is right now (XDG is only a thing for linux), then this seems ideal to me:
for people for whom that assumption is correct, they wont have XDG_CONFIG_HOME set and they'll see no change in behavior
** "Free" extra functionality for windows, where it's even less likely someone opts into thus, but hey i see no reason to artificially cripple windows.
for people like me, I'll see the behavior i want
Probably ideally this pattern is applied to all the xdg variables, but truly config is the only one that I'd actually like to commit to a repo, and therefore the only one there's a significant incentive to fix.
Happy to submit an actual PR if there's an indication it'd get merged.
Happy to submit an actual PR if there's an indication it'd get merged.
Unfortunately, we might have to wait for maintenance status to get sorted out in #79.
Activity
arusahni commentedon Jan 22, 2017
Click does something similar for POSIX systems, although it doesn't try to infer the
XDG_CONFIG_HOMEdirectory. Instead it just returns a top-level~/.appnamedir for all platforms.rendaw commentedon Jan 25, 2017
Could you set
appdirs.systemtolinux2maybe? https://github.com/ActiveState/appdirs/blob/master/appdirs.py#L39arusahni commentedon Jan 29, 2017
That looks like it'd apply that rule even when on Windows.
xmo-odoo commentedon Feb 20, 2018
@arusahni I expect @rendaw means doing so when it's configured as darwin if you want/need to e.g.
if you want your application to follow XDG rules even on OSX.
Move ptpython config to XDG_CONFIG_HOME
DanCardin commentedon Mar 8, 2020
I honestly, it seems like it would be ideal if appdirs listened to
XDG_*_HOMEfor all operating systems.Even if XDG isn't specified for macos, for almost all tools I can set (expecting it to work)
XDG_CONFIG_HOME, and therefore I can commit that dir to my dotfiles. Now, any library which uses appdirs forces me to go back to using symlinks and yields a worse experience.In my mind, even if it doesn't make the most sense for someone to set it on windows, it at least gives everyone an opportunity to customize the config location, as opposed to unconditionally having it set to a specific location (but only on certain operating systems). And ultimately in the default case where it's not being set, you get the same existing behavior.
0az commentedon Mar 20, 2020
I guess I can take a stab at a PR re-enabling
XDG_CONFIG_HOMEon Darwin next week.E: #137 exists.
DanCardin commentedon Mar 23, 2020
#137 seems like it'd be a jarring breaking change, on new installations it'd always prefer
~/.config, hardcoded.I'm imagining
Given my understanding of the reasoning for the way it is right now (XDG is only a thing for linux), then this seems ideal to me:
XDG_CONFIG_HOMEset and they'll see no change in behavior** "Free" extra functionality for windows, where it's even less likely someone opts into thus, but hey i see no reason to artificially cripple windows.
Probably ideally this pattern is applied to all the xdg variables, but truly config is the only one that I'd actually like to commit to a repo, and therefore the only one there's a significant incentive to fix.
Happy to submit an actual PR if there's an indication it'd get merged.
0az commentedon Mar 24, 2020