From 504600ad4125c1e91de20c72aa5fc34a583a5c63 Mon Sep 17 00:00:00 2001 From: Mateus Melchiades Date: Tue, 28 Feb 2023 14:06:21 -0300 Subject: [PATCH] Skip connectivity check on env variable --- vanilla_first_setup/defaults/conn_check.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vanilla_first_setup/defaults/conn_check.py b/vanilla_first_setup/defaults/conn_check.py index c0d5d08..c0f4220 100644 --- a/vanilla_first_setup/defaults/conn_check.py +++ b/vanilla_first_setup/defaults/conn_check.py @@ -16,6 +16,7 @@ from urllib.request import urlopen from urllib.error import URLError +import os from gi.repository import Gtk, GLib, Adw @@ -51,6 +52,9 @@ class VanillaDefaultConnCheck(Adw.Bin): def __start_conn_check(self): def async_fn(): + if "VANILLA_SKIP_CONN_CHECK" in os.environ: + return True + try: urlopen("http://google.com", timeout=1) return True