Ayushi-Sharma / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
1 stars 0 forks source link

Stripped down environment for new minttys created with Alt+F2 #360

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a mintty instance
2. Use the system menu "New" option or Alt+F2 to open a new mintty instance
3. From the second instance, control+click on a file name

What is the expected output? What do you see instead?
The environment for the process launched when control+clicking on the file name 
from the second mintty instance only contains the environment variables PATH, 
SYSTEMDRIVE, SYSTEMROOT, and WINDIR. It is missing many important variables 
such as HOMDRIVE, HOMEPATH, USERNAME, APPDATA, etc...

In contrast, these environment variables are all present in the process 
launched when control+clicking on a file name from a directly executed mintty 
instance.

What versions of mintty, Cygwin/MSYS, and Windows are you using?
$ mintty --version
mintty 1.1.2
(C) 2012 Andy Koppe
License GPLv3+: GNU GPL version 3 or later
There is no warranty, to the extent permitted by law.

cygwin: 1.7.17-1

Windows 7 64-bit Service Pack 1

Please provide any additional information below.

Original issue reported on code.google.com by jholt...@gmail.com on 19 Nov 2012 at 5:11

GoogleCodeExporter commented 9 years ago
Reproduced, thanks for the detailed description. How did you notice this?

Original comment by andy.koppe on 1 Dec 2012 at 6:43

GoogleCodeExporter commented 9 years ago
I had associated .c/.h files with a wrapper script I was experimenting with 
which would invoke gvim with different parameters depending on where the file 
was located based on a user configuration file located in the user's home 
directory. I noticed that my wrapper script sometimes didn't seem to be working 
and when debugging it I realized it was sometimes getting called without the 
environment variables needed for python to find the user's home directory. 
After some experimenting I found that this was only occurring in mintty's 
created with Alt+F2.

Original comment by jholt...@gmail.com on 1 Dec 2012 at 12:02

GoogleCodeExporter commented 9 years ago
See https://github.com/mintty/mintty/issues/360

Original comment by towom...@googlemail.com on 22 Jul 2015 at 12:42