Skip to content

old.graviton

marc2332 edited this page Feb 16, 2020 · 1 revision

How Graviton stores configuration & plugins

When Graviton is installed in a machine, it creates a directory called ".graviton" which contains Graviton's configuration , themes, recent projects log, etc.

Structure

This is an example (having installed the Dark theme):

/.graviton  
β”‚
└───/plugins
|   |
|   └───/Dark
|       |   package.json
|   
└───/plugins_db
|   config.json
|   log.json
|   market.json

The path where is installed varies on every operative system:

OS Path
Windows C:\Users\username\AppData\Roaming\.graviton
Linux /home/username/.config/.graviton
MacOS /users/username/library/applications support/.graviton

Runing graviton from source will create an alternative directory which aims to be more accesible:

If Graviton has been clonned on:

UserName/Desktop/Graviton-App

.graviton will be created in:

UserName/Desktop/.graviton

/plugins

This stores all the installed plugins (source code & dependencies)

/plugins_db

This stores each plugin database (in case they have created one). This provides a consistent way of saving data locally for the plugins. This can be useful in case the plugin wants to save some configuration.

config.json

This contains an object of all Graviton preferences, as for example the selected theme.

log.json

This is a simple array of all the recent projects.

market.json

This file contains the market cache, so you don't have to request it every time you open the market.

Clone this wiki locally