diff options
author | Joaquim Rocha <jrocha@endlessm.com> | 2018-08-16 15:40:17 +0200 |
---|---|---|
committer | Joaquim Rocha <jrocha@endlessm.com> | 2018-08-28 17:32:01 +0200 |
commit | 2f93edfbcf78f9ba872c0e388b8c73971fa4c504 (patch) | |
tree | c312df28a37483a3ef4a1903f3b331ec1fa67d85 | |
parent | 2f7c03fcfd5671c3f08bbf75e40a69dbd0f1fec0 (diff) | |
download | gnome-initial-setup-2f93edfbcf78f9ba872c0e388b8c73971fa4c504.tar.gz |
network: Use a debug env var to always show the wireless list
Even though the network page hides itself if there's an active
connection, this patch allows this behavior to be skipped (i.e. always
show the wireless list) if the GIS_ALWAYS_SHOW_NETWORK_PAGE environment
variable is set, as it is useful for debugging purposes.
-rw-r--r-- | gnome-initial-setup/pages/network/gis-network-page.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnome-initial-setup/pages/network/gis-network-page.c b/gnome-initial-setup/pages/network/gis-network-page.c index 5267abf..f0112e4 100644 --- a/gnome-initial-setup/pages/network/gis-network-page.c +++ b/gnome-initial-setup/pages/network/gis-network-page.c @@ -614,7 +614,10 @@ gis_network_page_constructed (GObject *object) goto out; } - if (nm_device_get_state (priv->nm_device) == NM_DEVICE_STATE_ACTIVATED) { + /* Allow to always show the network, even if there's an active connection, for + * debugging purposes */ + if (g_getenv ("GIS_ALWAYS_SHOW_NETWORK_PAGE") == NULL && + nm_device_get_state (priv->nm_device) == NM_DEVICE_STATE_ACTIVATED) { g_debug ("Activated network device found, hiding network page"); goto out; } |