← back to roto on ba3a.dev

Companion

object Companion

Locating the per-user configuration folder.

Functions

Link copied to clipboard

The store in this user's configuration folder on this machine.

Link copied to clipboard
fun folder(osName: String, environment: Map<String, String>, home: Path): Path

The per-user configuration folder Roto's settings live in, for an operating system called osName with environment and the user's home: %APPDATA%\Roto on Windows, ~/Library/Application Support/Roto on macOS, otherwise $XDG_CONFIG_HOME/roto, which defaults to ~/.config/roto.

Link copied to clipboard
fun homeLibrary(home: Path): Path

The default library for a user whose home folder is home: Roto in it, so profiles go to Roto/<project id>/.