From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83221 invoked by alias); 19 Apr 2017 21:47:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 83193 invoked by uid 89); 19 Apr 2017 21:47:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_1,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:ESMTPA X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Apr 2017 21:47:37 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 74A59210ED for ; Wed, 19 Apr 2017 17:47:37 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 19 Apr 2017 17:47:37 -0400 X-ME-Sender: Received: from [192.168.1.102] (host86-141-129-28.range86-141.btcentralplus.com [86.141.129.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 18B727E8B5 for ; Wed, 19 Apr 2017 17:47:37 -0400 (EDT) Subject: Re: cygwin-doc html/ missing docbook.css and index dups cygwin-{api,ug-net} To: The Cygwin Mailing List References: <970c5445-007e-1817-3006-973e8e26b77a@SystematicSw.ab.ca> <20170419105814.GB19304@calimero.vinschen.de> <4d562b86-271a-9774-efd5-f1d1eecb1b93@SystematicSw.ab.ca> From: Jon Turney Message-ID: <0cb50b7b-1fc8-0af0-973a-205356825076@dronecode.org.uk> Date: Thu, 20 Apr 2017 15:55:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <4d562b86-271a-9774-efd5-f1d1eecb1b93@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-04/txt/msg00244.txt.bz2 On 19/04/2017 16:42, Brian Inglis wrote: > On 2017-04-19 04:58, Corinna Vinschen wrote: >> On Apr 16 12:22, Brian Inglis wrote: > >>> Could you please consider having setup-x86{,_64} install Windows >>> shortcuts to at least the UG .pdf and index.html if present, in >>> the .../Start Menu/Programs/Cygwin folder? >>> A Windows URL shortcut to https://cygwin.com would also be helpful >>> for some. >> That requires to change setup or to provide a postinstall script. >> Are you willing to provide the latter? > > I am not aware of any arguments passed to postinstall scripts, so a > /etc/postinstall/cygwin-doc.sh would have to check for the folders > "$(cygpath -APU)"/Cygwin or "$(cygpath -PU)"/Cygwin, cd there, > mkshortcut(s), then cd back, as mkshortcut does not support folders, > as far as I can tell. > The postinstall script would also have to run elevated as admin to > make shortcuts in AllUsers/ProgramData, from what I have found. > An /etc/preremove/cygwin-doc.sh script would also have to be > provided to remove those shortcuts. > Any problems with that approach or improvements you could suggest? This needs documenting, but when running postinstall scripts, Cygwin setup sets the CYGWINFORALL env var to "-A" if installing for "All Users" [1], for exactly this purpose. [1] https://sourceware.org/git/gitweb.cgi?p=cygwin-setup.git;a=commitdiff;h=c3d07c1372904c915b5895808f2cc6462975901e -- 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