Accepting request 643789 from GNOME:Next
OBS-URL: https://build.opensuse.org/request/show/643789 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=375
This commit is contained in:
parent
1459d6bf28
commit
7ece2a4905
@ -11,7 +11,7 @@ https://bugzilla.gnome.org/show_bug.cgi?id=788169
|
||||
Index: gnome-shell-3.30.1/js/gdm/loginDialog.js
|
||||
===================================================================
|
||||
--- gnome-shell-3.30.1.orig/js/gdm/loginDialog.js 2018-10-08 21:33:22.000000000 +0200
|
||||
+++ gnome-shell-3.30.1/js/gdm/loginDialog.js 2018-10-18 21:38:44.251606757 +0200
|
||||
+++ gnome-shell-3.30.1/js/gdm/loginDialog.js 2018-10-22 20:25:19.894377588 +0200
|
||||
@@ -1126,7 +1126,8 @@ var LoginDialog = new Lang.Class({
|
||||
this._sessionMenuButton.close();
|
||||
this._setUserListExpanded(true);
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: gnome-shell-3.30.1/js/misc/ibusManager.js
|
||||
===================================================================
|
||||
--- gnome-shell-3.30.1.orig/js/misc/ibusManager.js 2018-10-08 21:33:22.000000000 +0200
|
||||
+++ gnome-shell-3.30.1/js/misc/ibusManager.js 2018-10-18 21:38:44.239606597 +0200
|
||||
+++ gnome-shell-3.30.1/js/misc/ibusManager.js 2018-10-22 20:25:19.878377429 +0200
|
||||
@@ -41,6 +41,10 @@ var IBusManager = new Lang.Class({
|
||||
_PRELOAD_ENGINES_DELAY_TIME: 30, // sec
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: gnome-shell-3.27.91/subprojects/gvc/meson.build
|
||||
Index: gnome-shell-3.30.1/subprojects/gvc/meson.build
|
||||
===================================================================
|
||||
--- gnome-shell-3.27.91.orig/subprojects/gvc/meson.build
|
||||
+++ gnome-shell-3.27.91/subprojects/gvc/meson.build
|
||||
--- gnome-shell-3.30.1.orig/subprojects/gvc/meson.build 2018-10-08 21:33:25.000000000 +0200
|
||||
+++ gnome-shell-3.30.1/subprojects/gvc/meson.build 2018-10-22 20:25:19.854377189 +0200
|
||||
@@ -90,7 +90,7 @@ else
|
||||
sources: libgvc_gir_sources + libgvc_no_gir_sources,
|
||||
dependencies: libgvc_deps,
|
||||
|
@ -17,7 +17,7 @@ https://bugzilla.gnome.org/show_bug.cgi?id=646187
|
||||
Index: gnome-shell-3.30.1/js/ui/status/network.js
|
||||
===================================================================
|
||||
--- gnome-shell-3.30.1.orig/js/ui/status/network.js 2018-10-08 21:33:22.000000000 +0200
|
||||
+++ gnome-shell-3.30.1/js/ui/status/network.js 2018-10-18 21:38:44.223606385 +0200
|
||||
+++ gnome-shell-3.30.1/js/ui/status/network.js 2018-10-22 20:25:19.866377309 +0200
|
||||
@@ -7,6 +7,7 @@ const Gtk = imports.gi.Gtk;
|
||||
const Lang = imports.lang;
|
||||
const Mainloop = imports.mainloop;
|
||||
@ -77,3 +77,53 @@ Index: gnome-shell-3.30.1/js/ui/status/network.js
|
||||
this._client.add_and_activate_connection_async(connection, this._device, accessPoints[0].get_path(), null, null)
|
||||
}
|
||||
}
|
||||
@@ -1162,9 +1175,10 @@ var NMDeviceWireless = new Lang.Class({
|
||||
Name: 'NMDeviceWireless',
|
||||
category: NMConnectionCategory.WIRELESS,
|
||||
|
||||
- _init(client, device) {
|
||||
+ _init(client, device, privateConnections) {
|
||||
this._client = client;
|
||||
this._device = device;
|
||||
+ this._privateConnections = privateConnections;
|
||||
|
||||
this._description = '';
|
||||
|
||||
@@ -1246,7 +1260,7 @@ var NMDeviceWireless = new Lang.Class({
|
||||
},
|
||||
|
||||
_showDialog() {
|
||||
- this._dialog = new NMWirelessDialog(this._client, this._device);
|
||||
+ this._dialog = new NMWirelessDialog(this._client, this._device, this._privateConnections);
|
||||
this._dialog.connect('closed', this._dialogClosed.bind(this));
|
||||
this._dialog.open();
|
||||
},
|
||||
@@ -1632,6 +1646,19 @@ var NMApplet = new Lang.Class({
|
||||
_clientGot(obj, result) {
|
||||
this._client = NM.Client.new_finish(result);
|
||||
|
||||
+ // Check if newly created connections should be private or not
|
||||
+ this._privateConnections = true;
|
||||
+ let authority = Polkit.Authority.get_sync(null);
|
||||
+ let credential = new Gio.Credentials();
|
||||
+ let subject = new Polkit.UnixProcess({ pid: credential.get_unix_pid(), uid: credential.get_unix_user() });
|
||||
+ let authResult = authority.check_authorization_sync(subject,
|
||||
+ 'org.freedesktop.NetworkManager.settings.modify.system',
|
||||
+ null /* details */,
|
||||
+ Polkit.CheckAuthorizationFlags.NONE,
|
||||
+ null /* cancellable */);
|
||||
+ if (authResult)
|
||||
+ this._privateConnections = !authResult.get_is_authorized();
|
||||
+
|
||||
this._activeConnections = [ ];
|
||||
this._connections = [ ];
|
||||
this._connectivityQueue = [ ];
|
||||
@@ -1747,7 +1774,7 @@ var NMApplet = new Lang.Class({
|
||||
|
||||
let wrapperClass = this._dtypes[device.get_device_type()];
|
||||
if (wrapperClass) {
|
||||
- let wrapper = new wrapperClass(this._client, device);
|
||||
+ let wrapper = new wrapperClass(this._client, device, this._privateConnections);
|
||||
device._delegate = wrapper;
|
||||
this._addDeviceWrapper(wrapper);
|
||||
|
||||
|
@ -23,7 +23,7 @@ Tue Oct 9 10:06:09 UTC 2018 - bjorn.lie@gmail.com
|
||||
glgo#GNOME/gnome-shell!228, glgo#GNOME/gnome-shell#618,
|
||||
glgo#GNOME/gnome-shell#471, glgo#GNOME/gnome-shell!255.
|
||||
+ Updated translations.
|
||||
- Rebase patches with quilt.
|
||||
- Rebase patches with quilt and some manual touchup.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 18 05:28:15 UTC 2018 - antoine.belvire@opensuse.org
|
||||
|
Loading…
x
Reference in New Issue
Block a user