Rename default libreoffice to soffice binary (#1834)

Rename default libreoffice to soffice binary
This commit is contained in:
Jure Grabnar 2019-06-13 11:49:52 +02:00 committed by GitHub
commit 0f359e98d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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