mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
util/xmlconfig: inline datadir
Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21808>
This commit is contained in:
parent
44b0764930
commit
042d256c1e
1 changed files with 1 additions and 2 deletions
|
|
@ -1173,7 +1173,6 @@ initOptionCache(driOptionCache *cache, const driOptionCache *info)
|
|||
#define DATADIR "/usr/share"
|
||||
#endif
|
||||
|
||||
static const char *datadir = DATADIR "/drirc.d";
|
||||
static const char *execname;
|
||||
|
||||
void
|
||||
|
|
@ -1216,7 +1215,7 @@ driParseConfigFiles(driOptionCache *cache, const driOptionCache *info,
|
|||
if ((configdir = getenv("DRIRC_CONFIGDIR")))
|
||||
parseConfigDir(&userData, configdir);
|
||||
else {
|
||||
parseConfigDir(&userData, datadir);
|
||||
parseConfigDir(&userData, DATADIR "/drirc.d");
|
||||
parseOneConfigFile(&userData, SYSCONFDIR "/drirc");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue