Settings back to their defaults
Deventry keeps its settings in a file, and its tabs and other state in another. If Deventry starts with every setting at its default, one of them couldn’t be read. This page says what happens and how to get your settings back. To reset settings on purpose, see Resetting a section below.
Where the files are
| System | Settings (settings.json) |
State (state.json) |
|---|---|---|
| Windows | %APPDATA%\Deventry |
%LOCALAPPDATA%\Deventry |
| macOS | ~/Library/Application Support/Deventry |
~/Library/Application Support/Deventry |
| Linux | ~/.config/deventry |
~/.local/share/deventry |
The state file holds your saved tabs, recent and favorite folders, the folders you trust and similar things for this computer. Settings → Advanced → Open data folder opens the data folder, where the state file is.
Deventry writes each file whole or not at all: it writes a temporary file next to the real one and renames it over the real one. A crash or a power cut leaves the old file or the new one, never half of one.
A file that isn’t valid
If settings.json or state.json isn’t valid JSON, say because someone edited it, Deventry keeps it next to the original as <name>.<time>.bad and starts from defaults. Your settings look reset, or your saved tabs don’t come back.
To get them back:
- Quit Deventry.
- Open the
.badfile in a text editor and look for what’s wrong, such as a missing comma or an end that was cut off. - Fix it, and save it as
settings.json(orstate.json) in place of the new one Deventry wrote. - Start Deventry.
If you’d rather start fresh, leave things as they are and set Deventry up again.
A file that can’t be read
If a file can’t be read at all, because something else still has it open after Deventry’s retries (an antivirus scanner or a backup, for instance) or because you aren’t allowed to read it, Deventry leaves it alone. It starts from defaults for this run, but doesn’t save over the file, so your changes this run aren’t kept, and your real settings are back the next time Deventry starts.
Close whatever holds the file, or fix its permissions, then restart Deventry.
Resetting a section
Each section of a Settings page has its own Reset to defaults. It returns that section’s settings to their defaults and nothing else. A few things stay as they are on purpose:
- Sessions keeps the library folder and settings sync, since changing either moves where sessions and settings live.
- Tabs keeps your favorite and recent folders, which are data for this computer rather than settings.
- General keeps Start Deventry when I log in, which the OS holds.
- Accounts only sets New folders use back to Default. Your accounts stay.
No Reset to defaults touches a project’s files or the choices Deventry remembers for a project. See The Settings window.
To start over completely, quit Deventry and move settings.json aside. Deventry makes a new one with the defaults.
See also
- Where Deventry keeps things
- Settings sync, for settings kept the same on several computers.