Set XERRORDB environment variable to relocate the XErrorDB file

This commit is contained in:
Alexander Gottwald 2004-12-01 14:16:07 +00:00
parent 9084423014
commit 3f063fc49c
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-01 Alexander Gottwald <ago at freedesktop dot org>
* InitOutput.c:
Set XERRORDB environment variable to relocate the XErrorDB file
2004-11-29 Kensuke Matsuzaki <zakki@peppermint.jp>
* winmultiwindowwm.c:

View File

@ -606,6 +606,14 @@ winFixupPaths (void)
buffer[sizeof(buffer)-1] = 0;
putenv(buffer);
}
if (getenv("XERRORDB") == NULL)
{
char buffer[MAX_PATH];
snprintf(buffer, sizeof(buffer), "XERRORDB=%s\\XErrorDB",
basedir);
buffer[sizeof(buffer)-1] = 0;
putenv(buffer);
}
if (getenv("XLOCALEDIR") == NULL)
{
char buffer[MAX_PATH];