mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 04:36:10 +08:00
Remove preload libcef library
This commit is contained in:
@ -398,9 +398,9 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& 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<std::wstring>& 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);
|
||||
|
||||
Reference in New Issue
Block a user