diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-18 14:53:13 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-18 14:53:13 +0200 |
| commit | cdf81eb1d7adb3faf8d0050798810742947e09af (patch) | |
| tree | de4aa5dc44973cf7ba2fd17758420b6bc2306d37 /src/core.c | |
| parent | 97491658c69ebd7081f05ae90aee07a540b13b40 (diff) | |
| download | box64-cdf81eb1d7adb3faf8d0050798810742947e09af.tar.gz box64-cdf81eb1d7adb3faf8d0050798810742947e09af.zip | |
Now x86_64 bash can be installed as box64-bash and will be automaticly used if present
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c index ef6c473a..157dd204 100644 --- a/src/core.c +++ b/src/core.c @@ -2102,7 +2102,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf box64_zoom = 1; } // special case for bash (add BOX86_NOBANNER=1 if not there) - if(!strcmp(prgname, "bash")) { + if(!strcmp(prgname, "bash") || !strcmp(prgname, "box64-bash")) { printf_log(LOG_INFO, "bash detected, disabling banner\n"); if (!box64_nobanner) { setenv("BOX86_NOBANNER", "1", 0); @@ -2113,6 +2113,8 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf setenv("BOX64_BASH", prog, 1); } } + if(!bashpath) + bashpath = ResolveFile("box64-bash", &my_context->box64_path); if(bashpath) my_context->bashpath = box_strdup(bashpath); |