This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Make XWinrc work on Xming


Hi,

I have a crude patch to make XWinrc work on Xming (for use when
crosscompiled using MinGW):-

--- programs/Xserver/hw/xwin/save_winprefs.c    2005-07-26
22:22:03.000000000 +0100
+++ programs/Xserver/hw/xwin/winprefs.c 2005-07-27 09:58:51.000000000 +0100
@@ -380,7 +380,16 @@
                  else
                    return TRUE;
                  break;
-#endif
+#else
+               case CMD_EXEC:
+                  {
+                    char buffer[MAX_PATH];
+                    snprintf(buffer, sizeof(buffer), "cmd /c \"%s\"",
m->menuItem[j].param);
+                    buffer[sizeof(buffer)-1] = 0;
+                    system(buffer);
+                  }
+                 return TRUE;
+#endif
                case CMD_ALWAYSONTOP:
                  if (!hwnd)
                    return FALSE;

Colin Harrison 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]