[Mesa-dev] [PATCH 2/2] mesa: load a user defined drirc file specified via an environment variable

Edmondo Tommasina edmondo.tommasina at gmail.com
Mon Mar 27 15:45:29 UTC 2017


On Mon, Mar 27, 2017 at 9:23 AM, Gustaw Smolarczyk <wielkiegie at gmail.com> wrote:
> 26 mar 2017 22:32 "Edmondo Tommasina" <edmondo.tommasina at gmail.com>
> napisaƂ(a):
>
> Define a new MESA_USER_DRIRC environment variable to load a customized
> drirc file.
>
> When the variable is not defined, nothing changes and the ${HOME}/.drirc
> file will be loaded.
>
> If the variable is set to a file, this file will be loaded instead of
> the the ${HOME}/.drirc.
>
> Example: MESA_USER_DRIRC=~/glthread.drirc glxgears
>
> If the variable is set to nothing, it avoids to load the ${HOME}/.drirc
> file.
>
> Example: MESA_USER_DRIRC= glxgears
>
>
> Isn't a different behavior of unset variable vs an empty one confusing?

Possibly. It's a trade off between not touching the default behavior and
allowing to skip the ${HOME}/.drirc load.
I'm not too concerned and don't feel too strong about it. We can reach
quite the same by setting the variable to /dev/null.

> And
> what about at least documenting it outside of the commit message?

That's a good point. I'll extend the documentation and send a new
version.

> Gustaw

THANKS
edmondo


More information about the mesa-dev mailing list