diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-09-08 09:59:58 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-09-08 09:59:58 +0200 |
| commit | 532b1697a60ed9a684b5f82b752208317aaaf1d6 (patch) | |
| tree | ccb81b39e9f4e09e1c8f73e2e14d5c000aa93bc2 /src/main.c | |
| parent | a3f63a12f9102794ce1d94c972064f10a25e944b (diff) | |
| download | box64-532b1697a60ed9a684b5f82b752208317aaaf1d6.tar.gz box64-532b1697a60ed9a684b5f82b752208317aaaf1d6.zip | |
When running x86_64 bash, using x86_64 bash to run script automaticaly (for #402)
Diffstat (limited to 'src/main.c')
| -rwxr-xr-x | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 4929b769..ac04917c 100755 --- a/src/main.c +++ b/src/main.c @@ -84,6 +84,7 @@ int box64_mapclean = 0; int box64_zoom = 0; int box64_steam = 0; int box64_wine = 0; +int box64_bash = 0; int box64_musl = 0; int box64_nopulse = 0; int box64_nogtk = 0; @@ -1235,6 +1236,15 @@ int main(int argc, const char **argv, char **env) { printf_log(LOG_INFO, "Zoom detected, trying to use system libturbojpeg if possible\n"); box64_zoom = 1; } + // special case for bash (add BOX86_NOBANNER=1 if not there) + if(!strcmp(prgname, "bash")) { + printf_log(LOG_INFO, "bash detected, disabling banner\n"); + box64_bash = 1; + if (!box64_nobanner) { + setenv("BOX86_NOBANNER", "1", 0); + setenv("BOX64_NOBANNER", "1", 0); + } + } if(strstr(prgname, "pressure-vessel-wrap")==prgname) { printf_log(LOG_INFO, "pressure-vessel-wrap detected, disabling GTK\n"); box64_nogtk = 1; |