mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +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
|
module Paperclip
|
||||||
class CustomFilePreview < Processor
|
class CustomFilePreview < Processor
|
||||||
def make
|
def make
|
||||||
libreoffice_path = ENV['LIBREOFFICE_PATH'] || 'libreoffice'
|
libreoffice_path = ENV['LIBREOFFICE_PATH'] || 'soffice'
|
||||||
directory = File.dirname(@file.path)
|
directory = File.dirname(@file.path)
|
||||||
basename = File.basename(@file.path, '.*')
|
basename = File.basename(@file.path, '.*')
|
||||||
original_preview_file = File.join(directory, "#{basename}.png")
|
original_preview_file = File.join(directory, "#{basename}.png")
|
||||||
|
|
Loading…
Reference in a new issue