Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 1 Aug 2000 14:49:30 -0400 Message-Id: <200008011849.OAA27598@envy.delorie.com> From: DJ Delorie To: evansbryant AT look DOT ca CC: cygwin AT sourceware DOT cygnus DOT com In-reply-to: <003c01bffbe6$b9b59c00$0c8e42d8@raptor> (evansbryant@look.ca) Subject: Re: quirk in setup References: <003c01bffbe6$b9b59c00$0c8e42d8 AT raptor> > The quirk is that setup installs the Start Menu icon to the > "F:\Cygnus Solutions" It's supposed to go to your start menu, but it does use a Win32 API call to find out where that is. > It doesn't particularly bother me, and I would gladly try to fix it, > once I know how . . . I just thought I'd mention it. Here is the function in winsup/cinstall/desktop.cc that sets up the start menu link. If SHGetSpecialFolderLocation doesn't return the right value, it looks like it would do what you saw. Hint: use setup's msg() function like a "printf" for when you're running your program under gdb. static void start_menu (char *title, char *target) { char path[_MAX_PATH]; LPITEMIDLIST id; int issystem = (root_scope == IDC_ROOT_SYSTEM) ? 1 : 0; SHGetSpecialFolderLocation (NULL, issystem ? CSIDL_COMMON_PROGRAMS : CSIDL_PROGRAMS, &id); SHGetPathFromIDList (id, path); strcat (path, "/Cygnus Solutions"); make_link (path, title, target); } -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com