Re: [Mesa-dev] [PATCH v7 1/5] util: Get program name based on path when possible

2019-03-21 Thread Tapani Pälli
On 3/21/19 12:02 PM, Eric Engestrom wrote: On Thursday, 2019-03-21 09:14:15 +0200, Tapani Pälli wrote: Hello; One *very late* comment below .. On 10/23/18 6:38 PM, Nicholas Kazlauskas wrote: Some programs start with the path and command line arguments in argv[0] (program_invocation_name).

Re: [Mesa-dev] [PATCH v7 1/5] util: Get program name based on path when possible

2019-03-21 Thread Eric Engestrom
On Thursday, 2019-03-21 09:14:15 +0200, Tapani Pälli wrote: > Hello; > > One *very late* comment below .. > > On 10/23/18 6:38 PM, Nicholas Kazlauskas wrote: > > Some programs start with the path and command line arguments in > > argv[0] (program_invocation_name). Chromium is an example of > >

Re: [Mesa-dev] [PATCH v7 1/5] util: Get program name based on path when possible

2019-03-21 Thread Tapani Pälli
doh, it seems I used reply-list instead of reply-all, sending again with original author of the patch .. On 3/21/19 9:14 AM, Tapani Pälli wrote: Hello; One *very late* comment below .. On 10/23/18 6:38 PM, Nicholas Kazlauskas wrote: Some programs start with the path and command line

Re: [Mesa-dev] [PATCH v7 1/5] util: Get program name based on path when possible

2019-03-21 Thread Tapani Pälli
Hello; One *very late* comment below .. On 10/23/18 6:38 PM, Nicholas Kazlauskas wrote: Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path for

[Mesa-dev] [PATCH v7 1/5] util: Get program name based on path when possible

2018-10-23 Thread Nicholas Kazlauskas
Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path for the symbolic link /proc/self/exe to find the program name instead. It only uses the realpath