config/env/env.go
func SetForUid(id int, key, value string) error {
	_settings, err := getSettingsForUid(id)
	if err != nil {
		return err
	}

	if err = _Set(_settings.user, key, value); err != nil {
		return err
	}
	if _settings.useKDE {
		return _Set(_settings.kde, key, value)
	}
	return nil
}
func SetForUid(id int, key, value string) error {
	_settings, err := getSettingsForUid(id)
	if err != nil {
		return err
	}

	if err = _Set(_settings.user, key, value); err != nil {
		return err
	}
	if _settings.useKDE {
		return _Set(_settings.kde, key, value)
	}
	return nil
}
// SetForUid sets the value of the environment variable named by the key that
// affects a particular user.
// It returns an error, if any.