Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
34083d99
Commit
34083d99
authored
Oct 03, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preload cef library
parent
ef965718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
HtmlFile/HtmlFile.cpp
HtmlFile/HtmlFile.cpp
+8
-6
No files found.
HtmlFile/HtmlFile.cpp
View file @
34083d99
...
...
@@ -391,10 +391,11 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr
nargs
[
0
]
=
sXmlA
.
c_str
();
nargs
[
1
]
=
NULL
;
const
char
*
nenv
[
3
];
const
char
*
nenv
[
4
];
nenv
[
0
]
=
sLibraryDir
.
c_str
();
nenv
[
1
]
=
"DISPLAY=:0"
;
nenv
[
2
]
=
NULL
;
nenv
[
1
]
=
"LD_PRELOAD=./libcef.so"
;
nenv
[
2
]
=
"DISPLAY=:0"
;
nenv
[
3
]
=
NULL
;
execve
(
sProgramm
.
c_str
(),
(
char
*
const
*
)
nargs
,
...
...
@@ -411,10 +412,11 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr
nargs
[
4
]
=
sXmlA
.
c_str
();
nargs
[
5
]
=
NULL
;
const
char
*
nenv
[
3
];
const
char
*
nenv
[
4
];
nenv
[
0
]
=
sLibraryDir
.
c_str
();
nenv
[
1
]
=
NULL
;
//"DISPLAY=:99";
nenv
[
2
]
=
NULL
;
nenv
[
1
]
=
"LD_PRELOAD=./libcef.so"
;
nenv
[
2
]
=
NULL
;
//"DISPLAY=:99";
nenv
[
3
]
=
NULL
;
execve
(
"/usr/bin/xvfb-run"
,
(
char
*
const
*
)
nargs
,
(
char
*
const
*
)
nenv
);
exit
(
EXIT_SUCCESS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment