mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 11:41:19 +08:00
Rename default libreoffice to soffice binary
This commit is contained in:
parent
fa28e772f0
commit
5cb517e021
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue