26 lines
867 B
Go
26 lines
867 B
Go
package config
|
|
|
|
// RawtherapeeBin returns the rawtherapee-cli executable file name.
|
|
func (c *Config) RawtherapeeBin() string {
|
|
return findExecutable(c.options.RawtherapeeBin, "rawtherapee-cli")
|
|
}
|
|
|
|
// DarktableBin returns the darktable-cli executable file name.
|
|
func (c *Config) DarktableBin() string {
|
|
return findExecutable(c.options.DarktableBin, "darktable-cli")
|
|
}
|
|
|
|
// DarktablePresets checks if presets should be enabled (disables concurrent raw to jpeg conversion).
|
|
func (c *Config) DarktablePresets() bool {
|
|
return c.options.DarktablePresets
|
|
}
|
|
|
|
// SipsBin returns the sips executable file name.
|
|
func (c *Config) SipsBin() string {
|
|
return findExecutable(c.options.SipsBin, "sips")
|
|
}
|
|
|
|
// HeifConvertBin returns the heif-convert executable file name.
|
|
func (c *Config) HeifConvertBin() string {
|
|
return findExecutable(c.options.HeifConvertBin, "heif-convert")
|
|
}
|