Skip to content

Commit fc9d7f8

Browse files
[pdf2htmlEX_exe] Append LD_LIBRARY_PATH, if exists, not overwrite
1 parent 43d07c7 commit fc9d7f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pdf2htmlEX/src/main/java/com/viliussutkus89/android/pdf2htmlex/pdf2htmlEX_exe.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ public pdf2htmlEX_exe(@NonNull Context ctx) {
5252
super(ctx, null);
5353

5454
String nativeLibraryDir = ctx.getApplicationInfo().nativeLibraryDir;
55-
String LD_LIBRARY_PATH = m_environment.put("LD_LIBRARY_PATH", nativeLibraryDir);
55+
String oldLibraryPath = m_environment.put("LD_LIBRARY_PATH", nativeLibraryDir);
56+
if (null != oldLibraryPath) {
57+
m_environment.put("LD_LIBRARY_PATH", oldLibraryPath + ":" + nativeLibraryDir);
58+
}
5659

5760
File externalExecutable = new File(nativeLibraryDir, "libpdf2htmlEX-exe_not_lib.so");
5861

0 commit comments

Comments
 (0)