Skip to content

Commit

Permalink
Apply parameters when binary is behind a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Dec 23, 2023
1 parent 1b87600 commit 0582b45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0582b45

Please sign in to comment.