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