From 394d1e7b3885676f8036ea55c4ff80c120bfcea1 Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Thu, 22 Nov 2018 11:24:18 +0300 Subject: [PATCH] Remove preload libcef library --- HtmlFile/HtmlFile.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/HtmlFile/HtmlFile.cpp b/HtmlFile/HtmlFile.cpp index 27f67dac12..9226cb85af 100644 --- a/HtmlFile/HtmlFile.cpp +++ b/HtmlFile/HtmlFile.cpp @@ -398,9 +398,9 @@ int CHtmlFile::Convert(const std::vector& arFiles, const std::wstr const char* nenv[4]; nenv[0] = sLibraryDir.c_str(); - nenv[1] = "LD_PRELOAD=./libcef.so"; - nenv[2] = "DISPLAY=:0"; - nenv[3] = NULL; + nenv[1] = "DISPLAY=:0"; + nenv[2] = NULL; + nenv[3] = NULL; execve(sProgramm.c_str(), (char * const *)nargs, @@ -419,9 +419,8 @@ int CHtmlFile::Convert(const std::vector& arFiles, const std::wstr const char* nenv[4]; nenv[0] = sLibraryDir.c_str(); - nenv[1] = "LD_PRELOAD=./libcef.so"; - nenv[2] = NULL;//"DISPLAY=:99"; - nenv[3] = NULL; + nenv[1] = NULL;//"DISPLAY=:99"; + nenv[2] = NULL; execve("/usr/bin/xvfb-run", (char * const *)nargs, (char * const *)nenv); exit(EXIT_SUCCESS);