File size: 1,796 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Configuration

The app is configured via a JSON file that is built at compile time.

The build process is:

- The `config-base.json` file is used as the base config
- Values from the appropriate build config files then override the base values
- Final config is stored in `desktop/config.json`, which is then used by the app

## Config Values

`server_port` - Calypso server port

`server_url` - Calypso server URL for development against localhost

`server_host` - Calypso server host name

`debug` - `false` to disable, or a set of debug config

`mainWindow` - main app window config

`preferencesWindow` - preference window config

`aboutWindow` - about window config

`secretWindow` - secret window config

`crash_reporter` - crash reporter config

`updater` - auto updater config

`settings_filename` - filename used for the user settings (see [lib/settings](../desktop/lib/settings/README.md))

`default_settings` - default values used for the user settings

## Debug config

`enabled_by_default` - whether debug mode is enabled by default

`namespace` - the [debug](https://github.com/visionmedia/debug) namespace

`clear_log` - whether to clear the log at app start

`colors` - whether to show colors in debug output

## Updater config

`url` - Base URL for the updater

`delay` - Delay after app starts before checking for updates (ms)

`interval` - Interval between each update check (ms)

## Crash Reporter config

`url` - a URL used to post crash reports

`tracker` - enable crash tracking (see [lib/crash-tracker](../desktop/lib/crash-tracker/README.md))

`electron` - enable Electron crash reporter

## Window config

Window config is taken directly from the [Electron BrowserWindow](https://github.com/atom/electron/blob/HEAD/docs/api/browser-window.md#new-browserwindowoptions)