diff netinstall/desktop.cc @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents 3d3049ae1304
children ce0b3f2eff35
line wrap: on
line diff
--- a/netinstall/desktop.cc	Mon Aug 13 11:43:25 2007 +0200
+++ b/netinstall/desktop.cc	Mon Aug 13 11:44:37 2007 +0200
@@ -110,7 +110,11 @@
 static char* 
 find_xemacs_exe_name ()
 {
-  if (xemacs_package->type == TY_CYGWIN)
+  /* Hack to support older versions. */
+  if (strncmp (xemacs_package->info[xemacs_package->trust].version,
+	       "21.1", 4) == 0)
+    return strdup ("runemacs.exe");
+  else if (xemacs_package->type == TY_CYGWIN)
     return backslash (concat ("xemacs-",
 			      xemacs_package->info[xemacs_package->trust].version, 
 			      ".exe", 0));
@@ -420,11 +424,7 @@
   if (xemacs_package != 0 && xemacs_package->type != TY_GENERIC)
     {
       batname = concat (find_xemacs_exe_path (), "\\",
-#if 0
 			find_xemacs_exe_name (), 
-#else
-			"runemacs.exe",
-#endif
 			0);
       root_desktop = check_desktop ("XEmacs", batname);
       root_menu = check_startmenu ("XEmacs", batname);