This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin-doc html/ missing docbook.css and index dups cygwin-{api,ug-net}

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 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/ 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/ 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.


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]