about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-09-08 09:59:58 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-09-08 09:59:58 +0200
commit532b1697a60ed9a684b5f82b752208317aaaf1d6 (patch)
treeccb81b39e9f4e09e1c8f73e2e14d5c000aa93bc2 /src/main.c
parenta3f63a12f9102794ce1d94c972064f10a25e944b (diff)
downloadbox64-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-xsrc/main.c10
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;