]> git.eshelyaron.com Git - emacs.git/commit
Do not set LD_LIBRARY_PATH during Android initialization
authorPo Lu <luangruo@yahoo.com>
Sun, 14 Jul 2024 04:46:23 +0000 (12:46 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jul 2024 17:39:04 +0000 (19:39 +0200)
commit8e72547582c215aa99bdb34b67ad4d5194b83f44
tree82a214bd56f1778ca027dd2700a4458bd2f3797b
parent5bde22dca89575ed4e698bb4e4c371947ab75978
Do not set LD_LIBRARY_PATH during Android initialization

* doc/emacs/android.texi (Android Environment): Adjust
documentation to match.

* java/org/gnu/emacs/EmacsNoninteractive.java (main1): New
function.  Remove initialization of EmacsNative hither.
(main): Acquire an ApplicationInfo or LoadedApk, as the case may
be on the host system, derive a ClassLoader from the result, and
load and call `main1' from within this class loader.

* src/android-emacs.c (main):

* src/android.c (setEmacsParams): Do not override
LD_LIBRARY_PATH or set EMACS_LD_LIBRARY_PATH.  This enables
Emacs to execute subprocesses in certain "fortified" Android
systems, amongst other things.

(cherry picked from commit b00fc31dd1d4543f8b017e8d7fef7686cd430bcc)
doc/emacs/android.texi
java/org/gnu/emacs/EmacsNoninteractive.java
src/android-emacs.c
src/android.c