From 532b1697a60ed9a684b5f82b752208317aaaf1d6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 8 Sep 2022 09:59:58 +0200 Subject: When running x86_64 bash, using x86_64 bash to run script automaticaly (for #402) --- src/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.c') 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; -- cgit 1.4.1