fix(thumb): libreoffice warning (#2358)

pull/2224/merge
小白-白 2025-05-13 14:38:17 +08:00 committed by GitHub
parent fbf1d1d42c
commit 10e3854082
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func (l *LibreOfficeGenerator) Generate(ctx context.Context, es entitysource.Ent
// Convert the document to an image
encode := l.settings.ThumbEncode(ctx)
cmd := exec.CommandContext(ctx, l.settings.LibreOfficePath(ctx), "--headless",
"-nologo", "--nofirststartwizard", "--invisible", "--norestore", "--convert-to",
"--nologo", "--nofirststartwizard", "--invisible", "--norestore", "--convert-to",
encode.Format, "--outdir", tempOutputPath, tempInputPath)
// Redirect IO