Skip to content

Commit

Permalink
Allow use the right common path for configuration files
Browse files Browse the repository at this point in the history
Close #327
  • Loading branch information
maxcnunes committed Aug 18, 2017
1 parent 90a2793 commit b8f93d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions docs/app/configuration-file.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
## Configuration File

SQLECTRON keeps a hidden configuration file called `.sqlectron.json` at the user's home directory (`~/` osx and linux; `%userprofile%` windows ).
SQLECTRON keeps a configuration file in the directory:

This configuration is automatically handled by the app. Using default values when is possible. And saving automatically changes made to servers through the app. But you can override the default configurations by manually changing these values:
* **MacOS:** `~/Library/Preferences/Sqlectron`
* **Linux** (`$XDG_CONFIG_HOME` or `~/.config`) + `/Sqlectron`
* **Windows** (`$LOCALAPPDATA` or `%USERPROFILE%\AppData\Local`) + `\Sqlectron\Config`

> For older versions it was stored as `.sqlectron.json` at the user's home directory (`~/` osx and linux; `%userprofile%` windows ).
This configuration is automatically handled by the app. Using default values when is possible and saving automatically changes made to servers through the app. But you can override the default configurations by manually changing these values:

```js
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"babel-polyfill": "^6.22.0",
"bunyan": "^1.8.5",
"lodash.defaultsdeep": "^4.6.0",
"sqlectron-core": "^7.8.1"
"sqlectron-core": "^7.9.0"
},
"devDependencies": {
"autoprefixer-loader": "^3.2.0",
Expand Down

1 comment on commit b8f93d5

@BornaP
Copy link
Member

@BornaP BornaP commented on b8f93d5 Aug 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. When I find some time, I'll make configuration window so that user can set preferences inside the app.

Please sign in to comment.