Documentation ¶
Index ¶
- func CreateOrSetXfconfProperty(channel, property, propType, newValue string) result.Result
- func Hostname() string
- func ListXfconfProperties(channel string) ([]string, error)
- func ReadDconfKey(key string) (string, error)
- func ReadGsettingsKey(schema, key string) (string, error)
- func ReadXdgDir(key string) (string, error)
- func ReadXdgSettings(key string) (string, error)
- func ReadXfconfProperty(channel, property string) (string, error)
- func SetXfconfProperty(channel, property, newValue string) result.Result
- func UpdateXdgDir(key, value string) (bool, error)
- func Username() string
- func WriteDconfKey(key, newValue string) result.Result
- func WriteDebconfKey(packageName, keyName, typeName, value string) result.Result
- func WriteGsettingsKey(schema, key, newValue string) result.Result
- func WriteXdgSettings(key, value string) (bool, error)
- type DebConfKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrSetXfconfProperty ¶
CreateOrSetXfconfProperty sets an Xconf property.
func Hostname ¶
func Hostname() string
Hostname gets the value of HOSTNAME environment variable. os.Exit(1) on failure.
func ListXfconfProperties ¶
ListXfconfProperties gives the list of all properties from a given channel.
func ReadDconfKey ¶
ReadDconfKey reads a dconf key. Returns the key value
func ReadGsettingsKey ¶
ReadGsettingsKey reads a gsettings property. Returns the key value, or an error if the key was not found.
func ReadXdgSettings ¶ added in v1.0.1
ReadXdgSettings Reads an XDG settings
func ReadXfconfProperty ¶
ReadXfconfProperty reads an Xfconf property. Returns the key value, or an error.
func SetXfconfProperty ¶
SetXfconfProperty sets an Xconf property.
func UpdateXdgDir ¶
UpdateXdgDir Updates the location of an XDG directory It updates the ~/.config/user-dirs.dirs file using XDG executables
func WriteDconfKey ¶
WriteDconfKey writes a dconf key.
func WriteDebconfKey ¶
WriteDebconfKey writes a debconf key
func WriteGsettingsKey ¶
WriteGsettingsKey writes a gsettings key.
func WriteXdgSettings ¶ added in v1.0.1
WriteXdgSettings Updates an XDG property
Types ¶
type DebConfKey ¶
type DebConfKey struct {
// contains filtered or unexported fields
}
DebConfKey type
func ReadDebconfKey ¶
func ReadDebconfKey(packageName, keyName string) (DebConfKey, error)
ReadDebconfKey retreive a key inside a package If the key is not found, the null key is returned and NO error is reported
func ReadDebconfKeys ¶
func ReadDebconfKeys(packageName string) ([]DebConfKey, error)
ReadDebconfKeys retreive the list of debconf values relative to a package