comparison 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
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
108 } 108 }
109 109
110 static char* 110 static char*
111 find_xemacs_exe_name () 111 find_xemacs_exe_name ()
112 { 112 {
113 if (xemacs_package->type == TY_CYGWIN) 113 /* Hack to support older versions. */
114 if (strncmp (xemacs_package->info[xemacs_package->trust].version,
115 "21.1", 4) == 0)
116 return strdup ("runemacs.exe");
117 else if (xemacs_package->type == TY_CYGWIN)
114 return backslash (concat ("xemacs-", 118 return backslash (concat ("xemacs-",
115 xemacs_package->info[xemacs_package->trust].version, 119 xemacs_package->info[xemacs_package->trust].version,
116 ".exe", 0)); 120 ".exe", 0));
117 else 121 else
118 return strdup ("xemacs.exe"); 122 return strdup ("xemacs.exe");
418 batname = 0; 422 batname = 0;
419 423
420 if (xemacs_package != 0 && xemacs_package->type != TY_GENERIC) 424 if (xemacs_package != 0 && xemacs_package->type != TY_GENERIC)
421 { 425 {
422 batname = concat (find_xemacs_exe_path (), "\\", 426 batname = concat (find_xemacs_exe_path (), "\\",
423 #if 0
424 find_xemacs_exe_name (), 427 find_xemacs_exe_name (),
425 #else
426 "runemacs.exe",
427 #endif
428 0); 428 0);
429 root_desktop = check_desktop ("XEmacs", batname); 429 root_desktop = check_desktop ("XEmacs", batname);
430 root_menu = check_startmenu ("XEmacs", batname); 430 root_menu = check_startmenu ("XEmacs", batname);
431 } 431 }
432 else 432 else