diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-12-01 14:16:07 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-12-01 14:16:07 +0000 |
commit | 3f063fc49cc2d456359a1b0b9f36f27befdb09b0 (patch) | |
tree | 02e2a062b14708024e797eca96a685caad1d1713 /hw/xwin | |
parent | 908442301478b21febab17e31aa55918eaaa5101 (diff) |
Set XERRORDB environment variable to relocate the XErrorDB file
Diffstat (limited to 'hw/xwin')
-rw-r--r-- | hw/xwin/ChangeLog | 5 | ||||
-rw-r--r-- | hw/xwin/InitOutput.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index fb5904d95..8d7ad1a50 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -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: diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index a6865c2ce..d0b022bd8 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -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]; |