summaryrefslogtreecommitdiff
path: root/gtk/gtk_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtk_gui.c')
-rw-r--r--gtk/gtk_gui.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c
index 27c0921ba..ebe5d96ff 100644
--- a/gtk/gtk_gui.c
+++ b/gtk/gtk_gui.c
@@ -384,6 +384,17 @@ int main(int argc, char** argv)
char options[PATH_MAX];
char messages[PATH_MAX];
+ /* Some modern distributions can set ALL_PROXY/all_proxy if configured
+ * to by the user. Due to a bug in many versions of libcurl
+ * (including the one shipped in Ubuntu 10.04 LTS), this also takes
+ * effect on file:// URLs, meaning that NetSurf cannot load its
+ * default CSS file. Given all examples of distributions I've checked
+ * also set http_proxy and friends, we can safely unset these.
+ */
+
+ unsetenv("ALL_PROXY");
+ unsetenv("all_proxy");
+
gtk_init(&argc, &argv);
/* set standard error to be non-buffering */