This is obviously easy to fix, I just want to understand it. I know Linux, but I’m not very familiar with Ubuntu.
gnome-terminal is getting environment variables that other terminals (xterm, rxvt-unicode, Linux console) are not. In particular, gnome-terminal gets
http_proxy
,https_proxy
,ftp_proxy
,all_proxy
, and all caps versions of those. Those variables are not in/etc/profile
,/etc/profile.d/*
,/etc/environment
.
Answer
It is gnome-terminal itself that sets these variables. The relevant code resides in gnome-terminal’s source, src/terminal-util.c
, method terminal_util_add_proxy_env()
. The values are taken from Gnome’s settings, and the feature serves the purpose to have Gnome’s proxy settings take effect on as many apps/utilities as possible, including console ones.
Attribution
Source : Link , Question Author : jpkotta , Answer Author : egmont