Commit 3a5e54cd authored by Cédric Bellegarde's avatar Cédric Bellegarde

Restore proxy hack

parent da59c41c
Pipeline #83670 failed with stage
in 7 minutes and 16 seconds
......@@ -78,6 +78,13 @@ class Application(Gtk.Application):
application_id="org.gnome.Eolie",
flags=Gio.ApplicationFlags.HANDLES_COMMAND_LINE)
self.set_property("register-session", True)
# Fix proxy for python
proxy = GLib.environ_getenv(GLib.get_environ(), "all_proxy")
if proxy is not None and proxy.startswith("socks://"):
proxy = proxy.replace("socks://", "socks4://")
from os import environ
environ["all_proxy"] = proxy
environ["ALL_PROXY"] = proxy
# Ideally, we will be able to delete this once Flatpak has a solution
# for SSL certificate management inside of applications.
if GLib.file_test("/app", GLib.FileTest.EXISTS):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment