delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/01/14:51:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <dj AT delorie DOT com>
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 <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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019