res

package
v0.5.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package res contains various resources embedded within resetti that are used elsewhere.

Index

Constants

View Source
const (
	CgroupScriptPath  = "/cgroup_setup.sh"
	DefaultConfigPath = "/default.toml"
	ObsScriptPath     = "/scene-setup.lua"
)

Variables

View Source
var CgroupScript []byte

CgroupScript contains the cgroups setup shell script.

View Source
var DefaultConfig []byte

DefaultConfig contains the example configuration.

View Source
var ObsScript []byte

ObsScript contains the OBS scene collection generator script.

Functions

func GetDataDirectory

func GetDataDirectory() string

GetDataDirectory returns the path to the data directory for resetti. If an override was specified at build time, it will be used. Otherwise, $XDG_DATA_HOME/resetti or $HOME/.local/share/resetti will be used.

func WriteResources

func WriteResources() error

WriteResources writes various resources to disk on startup if needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL