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

Gustaw Smolarczyk wielkiegie at gmail.com
Mon Mar 27 07:23:40 UTC 2017


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? And
what about at least documenting it outside of the commit message?

Gustaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170327/0d62ed41/attachment.html>


More information about the mesa-dev mailing list