summaryrefslogtreecommitdiff
path: root/src/android.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-06-11 17:58:47 +0800
committerPo Lu <luangruo@yahoo.com>2023-06-11 17:58:47 +0800
commitaad78abfd2944298715c2954614db509eec1c6b3 (patch)
tree1422262a07cee23b5fcd3d8790f73d6bb0bff862 /src/android.c
parent24f25fc2f8823b1999fa66e4b21601ee4000f321 (diff)
Update Android port
* lisp/net/tramp.el (tramp-encoding-shell): * lisp/obsolete/terminal.el (terminal-emulator): * lisp/term.el (term-exec-1): * lisp/textmodes/artist.el (artist-figlet-get-font-list): * src/android.c (JNICALL): Where /bin/sh was previously used, use /system/bin/sh on Android.
Diffstat (limited to 'src/android.c')
-rw-r--r--src/android.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/android.c b/src/android.c
index b88d072e303..4414d465107 100644
--- a/src/android.c
+++ b/src/android.c
@@ -2518,6 +2518,10 @@ NATIVE_NAME (initEmacs) (JNIEnv *env, jobject object, jarray argv,
/* Set TMPDIR to the temporary files directory. */
setenv ("TMPDIR", android_cache_dir, 1);
+ /* And finally set "SHELL" to /system/bin/sh. Otherwise, some
+ programs will look for /bin/sh, which is problematic. */
+ setenv ("SHELL", "/system/bin/sh", 1);
+
/* Set the cwd to that directory as well. */
if (chdir (android_files_dir))
__android_log_print (ANDROID_LOG_WARN, __func__,