On Wed, Dec 30, 2020 at 1:09 PM Oleksandr Gavenko wrote:

> What way can I pass env var "CYGWIN" to the Cygwin service?

cygrunsrv --help shows this:

-e, --env <VAR=VALUE>    Optional environment strings which are added
to the environment when service is started. You can add up to 255
environment strings using the `--env' option.

These are added as REG_SZ values in
HKLM\SYSTEM\CurrentControlSet\Services\<servicename>\Parameters\Environment
registry subkey.

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

Reply via email to