[gnome-shell] networkAgent: Handle 'vpn' connections when delaying request
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] networkAgent: Handle 'vpn' connections when delaying request
- Date: Thu, 9 Jan 2020 01:32:08 +0000 (UTC)
commit 1ef4d85b50de5585909a5d5f4457ebccb37cea91
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Dec 17 00:21:46 2019 +0100
networkAgent: Handle 'vpn' connections when delaying request
Since commit 90a08ba0b6a, we only open a network secret dialog immediately
in response to user action, and show a notification otherwise.
While for the actual request VPNs are handled separately from other connections,
this isn't true when we show the notification - we need to handle 'vpn' together
with the other types there, or we fall through to the default 'invalid type'
exception.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2008
js/ui/components/networkAgent.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js
index ee376326bf..6779b31473 100644
--- a/js/ui/components/networkAgent.js
+++ b/js/ui/components/networkAgent.js
@@ -725,6 +725,10 @@ var NetworkAgent = class {
title = _("Mobile broadband network password");
body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
break;
+ case 'vpn':
+ title = _("VPN password");
+ body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
+ break;
default:
log(`Invalid connection type: ${connectionType}`);
this._native.respond(requestId, Shell.NetworkAgentResponse.INTERNAL_ERROR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]