Use of appdirs yields worse behavior on osx
See original GitHub issueappdirs
ignores XDG_CONFIG_HOME on macos and unconditionally wants to put the config in a macos-specific folder location.
Annoyingly there’s an appdirs issue which raises this and they just suggest that you artificially set the OS to be linux instead of darwin if you want linux behavior.
I’m going to also comment on their appdirs, but since this affects the behavior of ptpython specifically, i guess for now it’d be ideal for me if ptpython were do something like
if os.environ.get('XDG_CONFIG_HOME') and appdirs.system == 'darwin':
appdirs.system = 'linux'
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Allow macOS users to use XDG_CONFIG_HOME #78 - GitHub
The code here doesn't check for XDG_CONFIG_HOME if running macOS. ... Use of appdirs yields worse behavior on osx prompt-toolkit/ptpython# ...
Read more >PyInstaller Documentation - Read the Docs
PyInstaller bundles a Python application and all its dependencies into a single package. ... PyInstaller is tested against Windows, MacOS X, and Linux....
Read more >File and Directory Discovery, Technique T1083 - Enterprise
ID Name Description
S0045 ADVSTORESHELL ADVSTORESHELL can list files and directories.
S0031 BACKSPACE BACKSPACE allows adversaries to search for files.
S0234 Bandook Bandook has a command...
Read more >XPCShell tests — Firefox Source Docs documentation - Mozilla
xpcshell tests are quick-to-run tests, that are generally used to write unit tests. They do not have access to the full browser chrome...
Read more >Difficult to install pyCrypto locally for SDK use ... - Issue Tracker
default method for installing PyCrypto on OSX puts it on a path that the ... Workaround: Install Crypto to somwhere else on os.path,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I mean, I think that any user who is setting
XDG_CONFIG_HOME
is clearly attempting to opt into the behavior we’re talking about. It’s not obvious to me why that needs to have any OS significance. At which point the choice ofPTPYTHON_CONFIG
overXDG_CONFIG_HOME
seems kind of arbitrary.But i’ll take what i can get. Any way to opt into a specific location is a win in my book.
Showing my support here for using
$XDG_CONFIG_HOME
Something feels weird about
appdirs
distinction between MacOS and “other Unices”:Isn’t that odd - what is the significance of
~/Library/Application Support
for one Unix distro, while other distros should use a spec written for Unix in general? That seems like magic to me.Adding an environment variable is a small cost, and I appreciate that the addition has been made to allow for setting a config dir, but it does indeed feel dirty.
Using
$XDG_CONFIG_HOME
could improve UX in a number of areas:Is this something the maintainers would be interested in considering?