Rename default libreoffice to soffice binary

This commit is contained in:
Jure Grabnar 2019-06-13 11:32:11 +02:00
parent fa28e772f0
commit 5cb517e021

View file

@ -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")