X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C76A052.3080708@redhat.com>
Date: Thu, 26 Aug 2010 11:11:46 -0600
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: mintty start menu icon
References: <4C768951.5010403@freesbee.fr> <AANLkTi=oZq4gWna+8Bc+uuGqFJuuiyM-gg6CH7yWjfT0@mail.gmail.com>
In-Reply-To: <AANLkTi=oZq4gWna+8Bc+uuGqFJuuiyM-gg6CH7yWjfT0@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 08/26/2010 11:07 AM, Andy Koppe wrote:
> 2010/8/26 Vincent Rivière:
>> It would be nice if the mintty package could honor the unchecking of "Add
>> icon to Start Menu"
>
> Yes, that would be nice, but unfortunately setup.exe's design doesn't
> allow for this. The start menu icon is created by the mintty
> postinstall script, which is run before the user even gets to the "Add
> icon to Start Menu" option. Same issue for other packages that create
> start menu entries.

Well, it sort of does - if you create two packages, mintty (no shortcut 
menu created) and mintty-shortcut (depends on mintty, and additionally 
creates the shortcut), then the user can choose whether the shortcut 
will exist by which package they choose to install.  But that's not 
saying it's the best solution.

Another thought - now that we are patching setup.exe to set env-vars 
that inform the postinstall scripts about aspects of the installation 
(such as for all users or just me), setup.exe could also be patched to 
tell postinstall scripts whether start menu modifications are desired. 
However, this would require some major surgery, since the current 
implementation runs postinstall scripts prior to the screen where it 
asks if a start menu icon should exist.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

