Improve path settings, add icons

This commit is contained in:
Christoph Hagen
2025-12-20 12:06:59 +01:00
parent 9848de02cb
commit 07ba77e337
15 changed files with 126 additions and 21 deletions

View File

@@ -188,8 +188,7 @@ final class ImageGenerator {
// TODO: Run in security scope
let process = Process()
#warning("TODO: Move avifenc path to settings")
process.launchPath = "/opt/homebrew/bin/avifenc" // Adjust based on installation
process.launchPath = settings.tools.avifencPath
process.arguments = ["-q", "\(quality)", imagePath, generatedImagePath]
let pipe = Pipe()