<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Provide API to set proxy settings"
   href="https://bugs.webkit.org/show_bug.cgi?id=128674#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Provide API to set proxy settings"
   href="https://bugs.webkit.org/show_bug.cgi?id=128674">bug 128674</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=128674#c1">comment #1</a>) 
<span class="quote">&gt; *The hack:
&gt; 
&gt; - Unset env variables GNOME_DESKTOP_SESSION_ID and DESKTOP_SESSION
&gt; - Set env variables http_proxy and https_proxy.
&gt; - See
&gt; <a href="https://git.gnome.org/browse/glib-networking/tree/proxy/gnome/">https://git.gnome.org/browse/glib-networking/tree/proxy/gnome/</a>
&gt; gproxyresolvergnome.c</span >

Fair warning: it's not practical to safely use setenv() in a threaded application except at the very beginning of main() before any secondary threads are created, since one thread could be calling setenv() (or Environment.set_variable() in Vala) at the same time another is calling getenv(). It's not some theoretical issue, we've had multiple cases in GNOME, including one where the entire desktop session crashes (GNOME #754951).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>