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

2018-10-11 Thread Kazlauskas, Nicholas
On 10/11/2018 01:04 PM, Eric Engestrom wrote: On Thursday, 2018-10-11 12:43:11 -0400, 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 q

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

2018-10-11 Thread Eric Engestrom
On Thursday, 2018-10-11 12:43:11 -0400, 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 the symbolic lin

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

2018-10-11 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