Environment Variable Path not picked up

183 views
Skip to first unread message

gsa_user

unread,
Jan 6, 2012, 11:54:07 AM1/6/12
to terminator-users
Hello All,

I have a little problem that does not seem to be too complicated but
is yet driving me nuts. Iam running Cygwin/Terminator on a Windows 7
system. I set the PATH variable to include %JAVA_HOME%\bin. This
worked fine in Windows and I can also see it through the Cygwin
terminal. However, I cannot see this change in Terminator. I can see
JAVA_HOME and JRE_HOME, fine, but just not PATH - its still set to
what it was initially.

Any thoughts?

Thank you.

gil

Martin Dorey

unread,
Jan 6, 2012, 12:26:16 PM1/6/12
to gsa_user, terminator-users
> I set the PATH variable to include %JAVA_HOME%\bin

You don't say where you set that. Control Panel, System, Advanced, Environment Variables perhaps? PATH components I have there propagate to Terminator. If, however, I try to use % substitution there - prepending "%HOME%\bin;" - then I see that (unsubstituted) in "the Cygwin terminal" and rxvt. If I open a new Terminator window, by eg double-clicking on the desktop shortcut, then my change has no effect, because that just tells the existing Terminator process to open a new window. If I quit all the Terminator windows and double-click again, then I see the %HOME%/bin component (unsubstituted). So I suspect you've been caught out by the optimization that turns a new application invocation into a new window request.

Steinar Haugen

unread,
Jan 6, 2012, 12:43:02 PM1/6/12
to terminat...@googlegroups.com, gsa_user
Yeah, running processes don't see environment variable changes. Also, if you start terminator from another running process (e.g. Total Commander or Launchy), then that application needs to be restarted as well before launching terminator, since the environment variables are copied from the process that started terminator. 

I prefer to set the cygwin PATH (and any other environment variable needed on the command-line) in the .bashrc file manually instead to avoid these kinds of problems. That might lead to "double bookkeeping", however, esp. if you're also using the built-in command-line shell in windows. That is not an issue for me, though, and I like the upside of just having to create a new tab to get a terminal with updated settings.

-Steinar

--
You received this message because you are subscribed to the Google Groups "terminator-users" group.
To post to this group, send email to terminat...@googlegroups.com.
To unsubscribe from this group, send email to terminator-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/terminator-users?hl=en.


Reply all
Reply to author
Forward
0 new messages