public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: cygwin-doc html/ missing docbook.css and index dups cygwin-{api,ug-net}
Date: Thu, 20 Apr 2017 15:55:00 -0000	[thread overview]
Message-ID: <0cb50b7b-1fc8-0af0-973a-205356825076@dronecode.org.uk> (raw)
In-Reply-To: <4d562b86-271a-9774-efd5-f1d1eecb1b93@SystematicSw.ab.ca>

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

  reply	other threads:[~2017-04-19 21:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-16 21:53 Brian Inglis
2017-04-19 15:08 ` Corinna Vinschen
2017-04-20 13:44   ` Brian Inglis
2017-04-20 15:55     ` Jon Turney [this message]
2017-04-21  8:00       ` Brian Inglis
2017-04-21 18:44         ` Andrey Repin
2017-04-21 18:55           ` Brian Inglis
2017-04-23  9:26             ` Andrey Repin
2017-04-21 20:12           ` Andrey Repin
2017-04-22 17:21         ` Corinna Vinschen
2017-04-23  3:05           ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0cb50b7b-1fc8-0af0-973a-205356825076@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).