Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DISPLAY=:0

  • Loading branch information...
commit 7d644aefe1e1c270cd6e47151992b8dfbcba0d77 1 parent 687c978
@rodrigues rodrigues authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/wicked_pdf.rb
View
2  lib/wicked_pdf.rb
@@ -36,7 +36,7 @@ def pdf_from_string(string, options={})
string_file.write(string)
string_file.close
generated_pdf_file = WickedPdfTempfile.new("wicked_pdf_generated_file.pdf", temp_path)
- command = "\"#{@exe_path}\" #{'-q ' unless on_windows?}#{parse_options(options)} \"file:///#{string_file.path}\" \"#{generated_pdf_file.path}\" " # -q for no errors on stdout
+ command = "DISPLAY=:0 \"#{@exe_path}\" #{'-q ' unless on_windows?}#{parse_options(options)} \"file:///#{string_file.path}\" \"#{generated_pdf_file.path}\" " # -q for no errors on stdout
print_command(command) if in_development_mode?
err = Open3.popen3(command) do |stdin, stdout, stderr|
stderr.read
Please sign in to comment.
Something went wrong with that request. Please try again.