summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison-at-virgin.net>2008-04-29 13:45:06 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-04-29 13:45:06 +0100
commitbb6d2a09b87560ae396085ef0981b700924333cd (patch)
treecdc3c7b11fdd8ce7b2f7c575a47bf68a302913c7 /src
parent6baea764567c3327f1d85ba91375adaea6dab46d (diff)
Xming specific configuration file settings
Diffstat (limited to 'src')
-rw-r--r--src/Initialize.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Initialize.c b/src/Initialize.c
index 5813351..659287a 100644
--- a/src/Initialize.c
+++ b/src/Initialize.c
@@ -411,7 +411,11 @@ static void CombineUserDefaults(
Display *dpy,
XrmDatabase *pdb)
{
+#ifdef __MINGW32__
+ char *slashDotXdefaults = "/Xdefaults";
+#else
char *slashDotXdefaults = "/.Xdefaults";
+#endif
char *dpy_defaults = XResourceManagerString(dpy);
if (dpy_defaults) {
@@ -549,7 +553,11 @@ XrmDatabase XtScreenDatabase(
if (!(filename = getenv("XENVIRONMENT"))) {
int len;
+#ifdef __MINGW32__
+ char *slashDotXdefaultsDash = "/Xdefaults-";
+#else
char *slashDotXdefaultsDash = "/.Xdefaults-";
+#endif
(void) GetRootDirName(filename = filenamebuf,
PATH_MAX - strlen (slashDotXdefaultsDash) - 1);