From 5cb517e0216eb660013ab13c08ca6d9b5129af1c Mon Sep 17 00:00:00 2001 From: Jure Grabnar Date: Thu, 13 Jun 2019 11:32:11 +0200 Subject: [PATCH] Rename default libreoffice to soffice binary --- lib/paperclip_processors/custom_file_preview.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip_processors/custom_file_preview.rb b/lib/paperclip_processors/custom_file_preview.rb index 256c4f261..c749d9e6d 100644 --- a/lib/paperclip_processors/custom_file_preview.rb +++ b/lib/paperclip_processors/custom_file_preview.rb @@ -3,7 +3,7 @@ module Paperclip class CustomFilePreview < Processor def make - libreoffice_path = ENV['LIBREOFFICE_PATH'] || 'libreoffice' + libreoffice_path = ENV['LIBREOFFICE_PATH'] || 'soffice' directory = File.dirname(@file.path) basename = File.basename(@file.path, '.*') original_preview_file = File.join(directory, "#{basename}.png")