Skip to content
Versora

Manual

Administrators

Default settings

3 min read

On this page

The default settings are the starting point for whoever opens Versora for the first time: the list of projects, the Home groups, the registered servers (without tokens) and the preferences. Unlike the policy, they don't lock anything. The person starts with them and can change whatever they want later.

Use the default settings for what's a suggestion (the language, the theme, the pull mode, the company's servers already registered) and the policy for what's a rule.

Where the file lives

Versora looks for a settings.json in one of these folders, in this order:

  1. the folder given by the defaults_folder key of the policy (registry or policy.yml), for example \\servidor\versora\default;
  2. %ProgramData%\MCK2\Versora\default\, if the folder exists. Here, as with policy.yml, the owner of settings.json must be the Administrators group or SYSTEM;
  3. only with neither of the two, the folder given by the test source (VERSORA_POLICY_EXTRA).

For IT

The owner rule exists for the same reason as with policy.yml: without it, another user of the computer could plant default settings, such as a proxy, for their colleagues. The folder given by defaults_folder comes from a source only the administrator writes, which is why it doesn't go through this check.

Prepare the file

settings.json is a file from Export settings on Home.

Step by step

  1. On a reference Versora, set everything up the way you want to distribute it: Home projects and groups, servers in Git servers, language, theme and the other preferences.
  2. On Home, click Export settings.
  3. Do not check "Include the credentials (tokens) of …". Credentials are never distributed through this folder.
  4. Save the file and copy it as settings.json to the default settings folder, for example %ProgramData%\MCK2\Versora\default\settings.json.
  5. In Preferences › Policy and team, check the Default settings line: the path and the "in effect" state.

What goes in and what doesn't

Goes inDoesn't go in
The app's preferences (the versora.* keys with a text value), including the key map and the personal custom commandsThe credentials (tokens and passwords)
The Home projects, with the path and the nameThe open tabs
The Home groups and their colorsThe list of recent projects
The servers in Git servers: host, type and user, without the tokenThe state of the policy itself

When reading the file, the Policy and team page explains what was left out:

  • "the file's credentials were ignored: they aren't distributed through the defaults folder";
  • "N preferences ignored (key outside versora.* or a value that isn't text)".

Tip

The project paths are the reference machine's. Only include projects that exist at the same place on every machine, for example cloned by a setup script, or leave the project list empty.

When the values come in

Only on the real first use: when Versora has no preference saved yet for that Windows user and no registered server. Whoever already uses Versora doesn't get the default settings, not even when the file changes.

The order is:

  1. Before the app reads the preferences, the file's preferences are written.
  2. The projects, groups and servers come into Home and Git servers.
  3. The notice confirms: "Your company's default settings were applied."
  4. If the first-run wizard appears, its last step says: "Your company's default settings were already applied (you can change them in Preferences)."

The servers come in without a token. The person enters the token (or does the OAuth sign-in) later, in Git servers or in the wizard.

Messages

MessageWhat to do
"settings.json isn't valid JSON: …"The file was edited by hand and broke. Export it again.
"settings.json isn't a Versora "Export settings" file"The file didn't come from the export. Use Export settings on Home.
"unsupported settings.json version (expected 1)"The file is in a format this Versora version doesn't read.
"ignored: the file isn't owned by the Administrators group or SYSTEM"Write the file with an elevated process, through GPO or Intune.
"file too large"The file is over 4 MiB.

See also