about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-12-23 18:36:52 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-12-23 18:36:52 +0100
commit0582b453890eddbed3bf8f30bd2cb2e80054e3c8 (patch)
tree72e95ac92c3b08fbb4b9119f81a690713b14df1a /src
parent1b876006582b2982f0b666582c251ec302518124 (diff)
downloadbox64-0582b453890eddbed3bf8f30bd2cb2e80054e3c8.tar.gz
box64-0582b453890eddbed3bf8f30bd2cb2e80054e3c8.zip
Apply parameters when binary is behind a symlink
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index bb8181dd..3df686d9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1895,6 +1895,8 @@ int main(int argc, const char **argv, char **env) {
             printf_log(LOG_NONE, "Error setting process name (%s)\n", strerror(errno));
         else
             printf_log(LOG_INFO, "Rename process to \"%s\"\n", p);
+        if(strcmp(prgname, p))
+            ApplyParams(p);
         // and now all change the argv (so libs libs mesa find the correct program names)
         char* endp = (char*)argv[argc-1];
         while(*endp)