New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: App data in non-standard location #459
Comments
Do you happen to have a link to said macOS guidelines? |
You are right. On the other side, there are many other software, which uses the same convention for user data directory location (eg. .vscode, .yarn, .node) Does this cause any problems? Now the location is the same for all platforms (windows, mac, linux), and also in Docker. I guess in Windows also will point somewhere into AppData directory (but also in Windows, there are many programs, which use the same convention as DbGate). I am not sure, whether it's worth it, to make this change, which brings quite high risk, because of many supported platforms. |
@ProjectInfinity Yes, these are the relevant ones: |
Many developer tools do,
I don't really get this point. Sounds great for the developer, but I can't see how it makes sense for users. Operating systems are different, and require different handling. |
Thanks. After reading I agree with @janproch I think the changes required outweigh the usefulness of this.
I actively use dbgate for work and this is the size of my directory, I think it is an acceptable trade off.
In the end I think developer convenience in this event takes precedent over saving some megabytes on a user's drive. |
In my case it's actually a pretty significant 516MB. Is the developer convenience having to deal with the migration, or is it communicating with users in issues?
In my opinion, just because other apps are bad at following platform standards isn't a good reason to ignore the standards. I think we should all do our best I've never actually seen a GUI app store data where DbGate does, because frameworks like Electron have APIs to deal with it |
Similar task was already solved is issue #248 |
Describe the bug
DbGate is storing app data in
~/.dbgate
on macOS, which goes against macOS guidelines.This can be migrated fairly easily:
If
settings.json
does not exist in the new location, move over the files from~/.dbgate
if it existsExpected behavior
App data should be stored in
~/Library/Application Support/dbgate
. You can useapp.getPath('userData')
to get ahold of it.Version Information (please complete the following information):
The text was updated successfully, but these errors were encountered: