Diff:
---
desktop.cc | 33 ---------------------------------
1 file changed, 33 deletions(-)
diff --git a/desktop.cc b/desktop.cc
index 7795aada..c9efc2a8 100644
--- a/desktop.cc
+++ b/desktop.cc
@@ -52,7 +52,6 @@ static BoolOption NoDesktopOption (false, 'd', "no-desktop",
IDS_HELPTEXT_NO_DES
@*
*/
-static std::string batname;
static ControlAdjuster::ControlInfo DesktopControlsInfo[] = {
{IDC_DESKTOP_SEPARATOR, CP_STRETCH, CP_BOTTOM},
{IDC_STATUS, CP_LEFT, CP_BOTTOM},
@@ -145,36 +144,6 @@ desktop_icon (const std::string& title, const std::string&
target,
make_link (path, title, target, arg, iconpath);
}
-static void
-make_cygwin_bat ()
-{
- batname = backslash (cygpath ("/Cygwin.bat"));
- FILE *bat;
-
- size_t len = batname.size () + 7;
- WCHAR wname[len];
- mklongpath (wname, batname.c_str (), len);
-
- /* if the batch file exists, don't overwrite it */
- if (GetFileAttributesW (wname) != INVALID_FILE_ATTRIBUTES)
- return;
-
- bat = nt_wfopen (wname, "wt", 0755);
-
- if (!bat)
- return;
-
- fprintf (bat, "@echo off\n\n");
-
- fprintf (bat, "%.2s\n", get_root_dir ().c_str());
- fprintf (bat, "chdir %s\n\n",
- replace(backslash(get_root_dir() + "/bin"), "%", "%%").c_str());
-
- fprintf (bat, "bash --login -i\n");
-
- fclose (bat);
-}
-
static void
save_icon (std::string &iconpath, const char *resource_name)
{
@@ -246,8 +215,6 @@ do_desktop_setup ()
save_icon (defaulticon, "CYGWIN.ICON");
save_icon (terminalicon, "CYGWIN-TERMINAL.ICON");
- make_cygwin_bat ();
-
if (root_menu)
start_menu (TERMINALTITLE, target, "-i " TERMINALICON " -", terminalicon);
[setup - the official Cygwin setup program] branch master, updated. release_2.935-2-g4d82624c
Jon Turney via Cygwin-apps-cvs Tue, 02 Dec 2025 03:00:07 -0800
