This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: quirk in setup
- To: evansbryant at look dot ca
- Subject: Re: quirk in setup
- From: DJ Delorie <dj at delorie dot com>
- Date: Tue, 1 Aug 2000 14:49:30 -0400
- CC: cygwin at sourceware dot cygnus dot com
- References: <003c01bffbe6$b9b59c00$0c8e42d8@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 <g> . . . 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@sourceware.cygnus.com