2020-08-12 13:16:25 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
// RawtherapeeBin returns the rawtherapee-cli executable file name.
|
|
|
|
func (c *Config) RawtherapeeBin() string {
|
2020-12-18 20:42:12 +01:00
|
|
|
return findExecutable(c.options.RawtherapeeBin, "rawtherapee-cli")
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// DarktableBin returns the darktable-cli executable file name.
|
|
|
|
func (c *Config) DarktableBin() string {
|
2020-12-18 20:42:12 +01:00
|
|
|
return findExecutable(c.options.DarktableBin, "darktable-cli")
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// DarktablePresets checks if presets should be enabled (disables concurrent raw to jpeg conversion).
|
|
|
|
func (c *Config) DarktablePresets() bool {
|
2020-12-18 20:42:12 +01:00
|
|
|
return c.options.DarktablePresets
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// SipsBin returns the sips executable file name.
|
|
|
|
func (c *Config) SipsBin() string {
|
2020-12-18 20:42:12 +01:00
|
|
|
return findExecutable(c.options.SipsBin, "sips")
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// HeifConvertBin returns the heif-convert executable file name.
|
|
|
|
func (c *Config) HeifConvertBin() string {
|
2020-12-18 20:42:12 +01:00
|
|
|
return findExecutable(c.options.HeifConvertBin, "heif-convert")
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|