Replies: 1 comment 2 replies
-
Electron has mechanisms for finding these which I thought about using - but as a macOS user I can never remember where to look for this stuff! I'm hoping to help people who want to learn how to use CLI tools by showing them how to add specific commands - like So not using Application Support is currently a deliberate design decision. I'm ready to be convinced it's the wrong call though! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A lot of applications have a habit of creating an
~/.<appname>
directory, but most platforms typically have a preferred location for files. For example, on Linux distros usually that should be~/.config/<appname>
or~/.cache/<appname>
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
On MacOS, that would often be
~/Library/Application Support/<appname>
and~/Library/Cache/<appname>
Windows has an
Application Data
folder.For Python, there are libraries like https://pypi.org/project/appdirs/ that handle some of this, though I would imagine for javascript there are similar libraries
Beta Was this translation helpful? Give feedback.
All reactions