Merge lp:~sil2100/network-manager-applet/merge_1.0.6_debian into lp:~network-manager/network-manager-applet/ubuntu

Proposed by Łukasz Zemczak
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 468
Merged at revision: 467
Proposed branch: lp:~sil2100/network-manager-applet/merge_1.0.6_debian
Merge into: lp:~network-manager/network-manager-applet/ubuntu
Diff against target: 2479 lines (+1173/-967)
16 files modified
debian/changelog (+252/-4)
debian/control (+60/-67)
debian/gbp.conf (+1/-0)
debian/gir1.2-nmgtk-1.0.install (+1/-1)
debian/libnm-gtk0.symbols (+9/-8)
debian/network-manager-gnome.README.Debian (+5/-0)
debian/network-manager-gnome.manpages (+0/-1)
debian/network-manager-gnome.postinst (+10/-0)
debian/nm-applet.sgml (+0/-100)
debian/patches/11-user-connections.patch (+0/-698)
debian/patches/Allow-to-create-connections-without-admin-privileges.patch (+683/-0)
debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch (+35/-0)
debian/patches/Force-online-state-with-unmanaged-devices.patch (+28/-0)
debian/patches/nm-applet-use-indicator.patch (+84/-83)
debian/patches/series (+3/-1)
debian/rules (+2/-4)
To merge this branch: bzr merge lp:~sil2100/network-manager-applet/merge_1.0.6_debian
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+279012@code.launchpad.net

Commit message

Propose a merge of 1.0.6 from Debian. Remove unneeded patches, modify changelog, carry over required changes.

Description of the change

Propose a merge of 1.0.6 from Debian. Remove unneeded patches, modify changelog, carry over required changes.

Example package built in a local PPA here:
https://launchpad.net/~sil2100/+archive/ubuntu/testing/+sourcepub/5731167/+listing-archive-extra

Compared .deb's with existing ones and contents look sane.

To post a comment you must log in.
468. By Łukasz Zemczak

Remove the 11-user-connections.patch patch as it's not applied anymore (it's merged from debian now)

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks good!

review: Approve
469. By Łukasz Zemczak

Remove one more file that's not used anymore - nm-applet.sgml.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Sorry for the post-approve file removal. This file was not used anywhere and I didn't want to leave any leftovers. Thanks for the review, publishing in a moment!

470. By Łukasz Zemczak

One more file not needed.

471. By Łukasz Zemczak

Re-release.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2015-10-07 09:23:09 +0000
+++ debian/changelog 2015-12-02 15:57:13 +0000
@@ -1,6 +1,67 @@
1network-manager-applet (1.0.4-0ubuntu1) wily; urgency=medium1network-manager-applet (1.0.6-2ubuntu2) xenial; urgency=low
22
3 * New upstream release3 * Merge from Debian unstable. Remaining changes:
4 - lp341684_device_sensitive_disconnect_notify.patch: show correct
5 notification messages for disconnect events, to be in line with the other
6 *connect*text patches.
7 - lp460144_correctly_update_notification.patch: cleaner notification
8 messages, and allow for messages to be updated instead of cleared.
9 - applet-wifi-menu-before-vpn.patch: show Create New and Connect to Hidden
10 wifi menu items with the other Wifi items, rather than separated by
11 the VPN menus.
12 - nm-applet-use-indicator.patch: patch to support showing nm-applet as an
13 appindicator in Unity.
14 - position_dialogs_to_center_of_the_screen.patch: position dialogs to the
15 center of the screen.
16 - make_menu_items_insensitive_based_on_permissions.patch,
17 hide_policy_items_env_var.patch: provide a method to desensitize or hide
18 menu items which are useless given the current policykit policy level of
19 the user.
20 - applet_adhoc_use_wpa_rsn_part1.patch: enable Ad-Hoc using WPA RSN.
21 - lp1048516_dont_req_keyring_in_greeter.patch: don't try to load the
22 keyring if the user has no permissions to edit their own connections.
23 - lp1048520_delay_pin_dialog_in_greeter.patch: only ask for PIN entry when
24 a connection is being established rather than when a modem is detected.
25 - rebuild_menu_after_init.patch: force a rebuild of the menu to avoid it
26 staying empty on login.
27 - ubuntu_dont_autostart_under_GNOME.patch
28 - hide_virtual_devices.patch: updated to no longer show
29 - debian/rules: ship extra icons, use --enable-indicators, export
30 translations for Launchpad and fail if any files are missing from
31 .install files, or not being installed.
32 - debian/control: Build-Depend on dh-translations, libappindicator3-dev,
33 update package descriptions, add Breaks against gnome-bluetooth (<< 3.0).
34
35 -- Łukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> Wed, 25 Nov 2015 17:05:02 +0100
36
37network-manager-applet (1.0.6-2) unstable; urgency=medium
38
39 * Fix crash in nm-connection-editor when importing existing VPN config.
40 (Closes: #726935)
41
42 -- Michael Biebl <biebl@debian.org> Mon, 07 Sep 2015 06:26:02 +0200
43
44network-manager-applet (1.0.6-1) unstable; urgency=medium
45
46 * New upstream release.
47 * Refresh patches.
48 * Update symbols file, the symbols introduced in 1.0.4 now use symbol
49 versioning.
50
51 -- Michael Biebl <biebl@debian.org> Fri, 28 Aug 2015 17:21:30 +0200
52
53network-manager-applet (1.0.4-1) unstable; urgency=medium
54
55 * New upstream release.
56 * Make no-patch-numbers the default for gbp pq to avoid unnecessary noise.
57 * Refresh patches.
58 * Update symbols file for libnm-gtk0.
59
60 -- Michael Biebl <biebl@debian.org> Wed, 29 Jul 2015 01:08:38 +0200
61
62network-manager-applet (1.0.4-0ubuntu1) xenial; urgency=medium
63
64 * New upstream release (LP: #1467267)
4 * debian/control:65 * debian/control:
5 - Bump build-depends on libnm-util-dev, libnm-glib-dev, libnm-glib-vpn-dev,66 - Bump build-depends on libnm-util-dev, libnm-glib-dev, libnm-glib-vpn-dev,
6 network-manager-dev 67 network-manager-dev
@@ -14,7 +75,39 @@
14 * debian/patches/nm-applet-fix-shell-version.patch:75 * debian/patches/nm-applet-fix-shell-version.patch:
15 - No longer applicable76 - No longer applicable
1677
17 -- Robert Ancell <robert.ancell@canonical.com> Wed, 07 Oct 2015 15:08:47 +130078 -- Robert Ancell <robert.ancell@canonical.com> Wed, 28 Oct 2015 09:02:20 +1300
79
80network-manager-applet (1.0.2-1) unstable; urgency=medium
81
82 * New upstream release.
83 * Rebase patches.
84
85 -- Michael Biebl <biebl@debian.org> Tue, 05 May 2015 23:16:53 +0200
86
87network-manager-applet (1.0.0-3) unstable; urgency=medium
88
89 * Upload to unstable.
90
91 -- Michael Biebl <biebl@debian.org> Mon, 27 Apr 2015 16:43:02 +0200
92
93network-manager-applet (1.0.0-2) experimental; urgency=medium
94
95 * Install typelib files into multiarch paths now that gobject-introspection
96 supports that.
97 * Mark dev and gir packages as Multi-Arch: same.
98
99 -- Michael Biebl <biebl@debian.org> Mon, 09 Feb 2015 00:49:43 +0100
100
101network-manager-applet (1.0.0-1) experimental; urgency=medium
102
103 * New upstream release.
104 * Rebase patches.
105 * Bump dependency on network-manager and related dev packages to (>= 1.0.0).
106 * Bump Standards-Version to 3.9.6. No further changes.
107 * Update Vcs-Browser URL to use cgit and https.
108 * Update Homepage URL to use https.
109
110 -- Michael Biebl <biebl@debian.org> Mon, 02 Feb 2015 13:40:08 +0100
18111
19network-manager-applet (0.9.10.1-0ubuntu7) wily; urgency=medium112network-manager-applet (0.9.10.1-0ubuntu7) wily; urgency=medium
20113
@@ -95,6 +188,80 @@
95188
96 -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 26 Jan 2015 23:08:58 -0500189 -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 26 Jan 2015 23:08:58 -0500
97190
191network-manager-applet (0.9.10.0-2) unstable; urgency=medium
192
193 * Disable bluetooth support. The gnome-bluetooth plugin no longer builds
194 with gnome-bluetooth 3.12. But this plugin is really only useful for DUN
195 which with bluez 5 isn't supported (yet).
196 PAN support should still be functional.
197
198 -- Michael Biebl <biebl@debian.org> Wed, 16 Jul 2014 01:31:23 +0200
199
200network-manager-applet (0.9.10.0-1) unstable; urgency=medium
201
202 * New upstream release.
203 * Update Build-Depends as per configure.ac.
204 * Drop obsolete --with-gtkver configure switch.
205 * Refresh patches.
206 * Update symbols file. A few deprecated symbols were dropped which were used
207 in older versions of network-manager-gnome, so add a versioned Breaks.
208 * Exclude libtool .la files and static libraries from list-missing.
209
210 -- Michael Biebl <biebl@debian.org> Thu, 10 Jul 2014 07:32:44 +0200
211
212network-manager-applet (0.9.8.10-1) unstable; urgency=medium
213
214 * New upstream release.
215 * Update patches.
216 * Tighten Build-Depends on libgnome-bluetooth-dev to (<< 3.11.0).
217 The bluetooth widget no longer builds with newer gnome-bluetooth since the
218 plugin API was removed.
219
220 -- Michael Biebl <biebl@debian.org> Thu, 01 May 2014 14:22:42 +0200
221
222network-manager-applet (0.9.8.8-5) unstable; urgency=medium
223
224 * Use valid paths when loading the org.gnome.nm-applet.eap schema.
225 We were missing a trailing '/'. Newer glib versions validate the path more
226 strictly, leading to an assert.
227
228 -- Michael Biebl <biebl@debian.org> Fri, 04 Apr 2014 17:51:38 +0200
229
230network-manager-applet (0.9.8.8-4) unstable; urgency=medium
231
232 * Drop dbus reload from postinst. The dbus package uses a file trigger
233 nowadays to automatically reload its configuration.
234 * Use the paths specified in the VPN .name files.
235 Since LIBDIR of nm-applet and the VPN plugins aren't necessarily the
236 same, use the paths as specified by the VPN plugins and only
237 reconstruct the path if it is not absolute or we fail to load the plugin.
238
239 -- Michael Biebl <biebl@debian.org> Tue, 01 Apr 2014 21:41:36 +0200
240
241network-manager-applet (0.9.8.8-3) unstable; urgency=medium
242
243 * Bump debhelper compatibility level to 9.
244 * Determine gnome-bluetooth plugin directory using libdir from
245 gnome-bluetooth-1.0.pc.
246 * Convert to multi-arch. Mark libnm-gtk0 as M-A: same, libnm-gtk-common as
247 M-A: foreign.
248 * Rely on dh v9 to set flags from dpkg-buildflags.
249
250 -- Michael Biebl <biebl@debian.org> Tue, 01 Apr 2014 16:23:05 +0200
251
252network-manager-applet (0.9.8.8-2) unstable; urgency=medium
253
254 * Enable ModemManager1 interface support. (Closes: #711968)
255
256 -- Michael Biebl <biebl@debian.org> Thu, 27 Mar 2014 16:50:18 +0100
257
258network-manager-applet (0.9.8.8-1) unstable; urgency=medium
259
260 * New upstream release.
261 * Bump Standards-Version to 3.9.5.
262
263 -- Michael Biebl <biebl@debian.org> Tue, 18 Mar 2014 11:17:48 +0100
264
98network-manager-applet (0.9.8.8-0ubuntu9) vivid; urgency=medium265network-manager-applet (0.9.8.8-0ubuntu9) vivid; urgency=medium
99266
100 * Switch gnome-icon-theme to adwaita-icon-theme, which is its267 * Switch gnome-icon-theme to adwaita-icon-theme, which is its
@@ -513,6 +680,16 @@
513680
514 -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 19 Nov 2012 14:46:29 -0500681 -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 19 Nov 2012 14:46:29 -0500
515682
683network-manager-applet (0.9.6.2-1) experimental; urgency=low
684
685 * New upstream release.
686 * Bump Build-Depends on libnm-*-dev and network-manager-dev to (>= 0.9.6).
687 * Bump Depends on network-manager to (>= 0.9.6).
688 * debian/patches/01-fix-crash-in-migration-wizard.patch: Removed, merged
689 upstream.
690
691 -- Michael Biebl <biebl@debian.org> Tue, 11 Sep 2012 23:06:31 +0200
692
516network-manager-applet (0.9.6.2-0ubuntu6) quantal; urgency=low693network-manager-applet (0.9.6.2-0ubuntu6) quantal; urgency=low
517694
518 * debian/patches/git_indicate_hspa+_lte_tech_dbe3b12.patch: add indications695 * debian/patches/git_indicate_hspa+_lte_tech_dbe3b12.patch: add indications
@@ -2140,6 +2317,75 @@
21402317
2141 -- Alexander Sack <asac@ubuntu.com> Tue, 17 Feb 2009 16:06:09 +01002318 -- Alexander Sack <asac@ubuntu.com> Tue, 17 Feb 2009 16:06:09 +0100
21422319
2320network-manager-applet (0.7.0-2) experimental; urgency=low
2321
2322 * debian/patches/01-dbus_access_nm_applet.patch
2323 - Remove bare send_interface directives to avoid non-deterministic allow
2324 messages with no interface. (Closes: #510728)
2325 - Do not allow unpriviledged processes to ask for a users' connections.
2326 - Allow introspection by default.
2327 * debian/control
2328 - Wrap build dependencies.
2329 - Bump build dependency on debhelper to (>= 7).
2330 * debian/compat
2331 - Bump to debhelper v7 compat mode.
2332
2333 -- Michael Biebl <biebl@debian.org> Sat, 14 Feb 2009 16:16:35 +0100
2334
2335network-manager-applet (0.7.0-1) experimental; urgency=low
2336
2337 * New upstream release.
2338 - Notification popups can be disabled. (Closes: #446963)
2339 - Notification applet correctly handles panel restarts. (Closes:# 458332)
2340 - The nm-editor tool has been replaced by nm-connection-editor.
2341 (Closes: #494148, #482107, #485651)
2342 - Show the correct configuration for WPA Enterprise setups in
2343 nm-connection-editor (Closes: #480039)
2344
2345 [ Sjoerd Simons ]
2346 * debian/patches/02-nm-api-update.patch:
2347 - Removed. Fixed upstream
2348 * debian/control: Tighten build-depends on nm related libraries
2349
2350 [ Michael Biebl ]
2351 * debian/copyright
2352 - More updates to the copyright file. The polkit-helper bits are licensed
2353 under the LGPL.
2354 * debian/control
2355 - Add network-manager-pptp-gnome to Suggests.
2356
2357 -- Michael Biebl <biebl@debian.org> Tue, 16 Dec 2008 06:50:06 +0100
2358
2359network-manager-applet (0.7.0~svn953-1) experimental; urgency=low
2360
2361 [ Michael Biebl ]
2362 * Switch to quilt patch management system.
2363 * debian/rules
2364 - Set libexecdir to /usr/lib/NetworkManager, so nm-applet and
2365 nm-connection-editor automatically find the VPN GUI plugins.
2366 * debian/control:
2367 - Bump Standards-Version to 3.8.0. No further changes.
2368 - Demote Recommends on VPN plugins to Suggests.
2369 - Bump Depends on network-manager to (>= 0.7).
2370 - Add Build-Depends on libpolkit-gnome-dev.
2371 - Add Recommends on policykit-gnome. This package is required if you want
2372 to manage system connections.
2373 * debian/patches/01-dbus_access_nm_applet.patch: Updated
2374 * Removed obsolete patches:
2375 - debian/patches/02-hal_deprecated_keys.patch
2376 - debian/patches/03-nm_editor_category.patch
2377 * debian/copyright: Revised for the latest changes.
2378
2379 [ Simon McVittie ]
2380 * Newer svn snapshot
2381
2382 [ Sjoerd Simons ]
2383 * debian/patches/02-nm-api-udate.patch
2384 - Added. cope with a small NM 0.7 api change
2385 * debian/control: Build-Depend on nm-glib dev packages with new api
2386
2387 -- Sjoerd Simons <sjoerd@debian.org> Sat, 18 Oct 2008 21:40:05 +0100
2388
2143network-manager-applet (0.7-0ubuntu2) jaunty; urgency=low2389network-manager-applet (0.7-0ubuntu2) jaunty; urgency=low
21442390
2145 * fix LP: #295788 - Network Configuration menu item should also be2391 * fix LP: #295788 - Network Configuration menu item should also be
@@ -2520,6 +2766,7 @@
2520 * Add debian/watch to track new upstream releases.2766 * Add debian/watch to track new upstream releases.
25212767
2522 -- Michael Biebl <biebl@debian.org> Mon, 27 Aug 2007 08:03:06 +02002768 -- Michael Biebl <biebl@debian.org> Mon, 27 Aug 2007 08:03:06 +0200
2769
2523network-manager-applet (0.6.5-0ubuntu11) hardy; urgency=low2770network-manager-applet (0.6.5-0ubuntu11) hardy; urgency=low
25242771
2525 * apply patch to drop gnome-runtime dependencies (LP: #136945) - patch by Jani2772 * apply patch to drop gnome-runtime dependencies (LP: #136945) - patch by Jani
@@ -2638,3 +2885,4 @@
2638 to network-manager package due to bad source splitting2885 to network-manager package due to bad source splitting
26392886
2640 -- Anthony Mercatante <tonio@ubuntu.com> Fri, 15 Jun 2007 12:46:22 +02002887 -- Anthony Mercatante <tonio@ubuntu.com> Fri, 15 Jun 2007 12:46:22 +0200
2888
26412889
=== modified file 'debian/control'
--- debian/control 2015-10-07 03:56:07 +0000
+++ debian/control 2015-12-02 15:57:13 +0000
@@ -4,59 +4,53 @@
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>5XSBC-Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
6Uploaders: Michael Biebl <biebl@debian.org>6Uploaders: Michael Biebl <biebl@debian.org>
7Build-Depends:7Build-Depends: debhelper (>= 9),
8 debhelper (>= 9),8 autotools-dev,
9 autotools-dev,9 dh-autoreconf,
10 dh-autoreconf,10 gnome-common,
11 gnome-common,11 intltool,
12 intltool,12 libdbus-glib-1-dev (>= 0.74),
13 docbook-to-man,13 libgnome-keyring-dev,
14 libdbus-glib-1-dev (>= 0.74),14 libsecret-1-dev,
15 libgnome-keyring-dev,15 libgtk-3-dev (>= 3.4),
16 libsecret-1-dev,16 libglib2.0-dev (>= 2.32),
17 libgtk-3-dev (>= 3.4),17 libgconf2-dev,
18 libglib2.0-dev (>= 2.32),18 libnotify-dev (>= 0.7),
19 libgconf2-dev,19 libnm-util-dev (>= 1.0.0),
20 libnotify-dev (>= 0.7),20 libnm-glib-dev (>= 1.0.0),
21 libnm-util-dev (>= 1.0.0),21 libnm-glib-vpn-dev (>= 1.0.0),
22 libnm-glib-dev (>= 1.0.0),22 network-manager-dev (>= 1.0.0),
23 libnm-glib-vpn-dev (>= 1.0.0),23 libmm-glib-dev,
24 network-manager-dev (>= 1.0.0),24 libgudev-1.0-dev (>= 147),
25 libmm-glib-dev,25 iso-codes,
26 libgudev-1.0-dev (>= 147),26 libgirepository1.0-dev,
27 iso-codes,27 dh-translations,
28 libgirepository1.0-dev,28 libappindicator3-dev,
29 dh-translations,29 gobject-introspection
30 libappindicator3-dev,30Standards-Version: 3.9.6
31 gobject-introspection
32Standards-Version: 3.9.5
33Vcs-Bzr: https://code.launchpad.net/~network-manager/network-manager-applet/ubuntu31Vcs-Bzr: https://code.launchpad.net/~network-manager/network-manager-applet/ubuntu
34Homepage: http://www.gnome.org/projects/NetworkManager/32Homepage: https://www.gnome.org/projects/NetworkManager/
3533
36Package: network-manager-gnome34Package: network-manager-gnome
37Architecture: linux-any35Architecture: linux-any
38Section: gnome36Section: gnome
39Pre-Depends: ${misc:Pre-Depends}37Pre-Depends: ${misc:Pre-Depends}
40Depends:38Depends: ${shlibs:Depends},
41 ${shlibs:Depends},39 ${misc:Depends},
42 ${misc:Depends},40 libnm-gtk0 (= ${binary:Version}),
43 libnm-gtk0 (= ${binary:Version}),41 network-manager (>= 1.0.0),
44 network-manager (>= 0.9.10),42 policykit-1-gnome,
45 policykit-1-gnome,43 gnome-icon-theme,
46 adwaita-icon-theme,44 dbus-x11
47 dbus-x1145Recommends: notification-daemon,
48Recommends:46 gnome-keyring,
49 notification-daemon,47 mobile-broadband-provider-info,
50 gnome-keyring,48 iso-codes
51 mobile-broadband-provider-info,49Suggests: network-manager-openconnect-gnome,
52 iso-codes50 network-manager-openvpn-gnome,
53Suggests:51 network-manager-vpnc-gnome,
54 network-manager-openconnect-gnome,52 network-manager-pptp-gnome
55 network-manager-openvpn-gnome,53Breaks: gnome-bluetooth (<< 3.0)
56 network-manager-vpnc-gnome,
57 network-manager-pptp-gnome
58Breaks:
59 gnome-bluetooth (<< 3.0)
60Description: network management framework (GNOME frontend)54Description: network management framework (GNOME frontend)
61 NetworkManager is a system network service that manages your network devices55 NetworkManager is a system network service that manages your network devices
62 and connections, attempting to keep active network connectivity when56 and connections, attempting to keep active network connectivity when
@@ -75,10 +69,10 @@
75Architecture: linux-any69Architecture: linux-any
76Multi-Arch: same70Multi-Arch: same
77Section: libs71Section: libs
78Depends:72Pre-Depends: ${misc:Pre-Depends}
79 ${shlibs:Depends},73Depends: ${shlibs:Depends},
80 ${misc:Depends},74 ${misc:Depends},
81 libnm-gtk-common (= ${source:Version})75 libnm-gtk-common (= ${source:Version})
82Breaks: network-manager-gnome (<< 0.9.10.0)76Breaks: network-manager-gnome (<< 0.9.10.0)
83Description: network management framework (GNOME dialogs for wifi and mobile)77Description: network management framework (GNOME dialogs for wifi and mobile)
84 NetworkManager is a system network service that manages your network devices78 NetworkManager is a system network service that manages your network devices
@@ -93,8 +87,7 @@
93Architecture: all87Architecture: all
94Multi-Arch: foreign88Multi-Arch: foreign
95Section: libs89Section: libs
96Depends:90Depends: ${misc:Depends}
97 ${misc:Depends}
98Description: network management framework (common files for wifi and mobile)91Description: network management framework (common files for wifi and mobile)
99 NetworkManager is a system network service that manages your network devices92 NetworkManager is a system network service that manages your network devices
100 and connections, attempting to keep active network connectivity when93 and connections, attempting to keep active network connectivity when
@@ -106,17 +99,17 @@
10699
107Package: libnm-gtk-dev100Package: libnm-gtk-dev
108Architecture: linux-any101Architecture: linux-any
102Multi-Arch: same
109Section: libdevel103Section: libdevel
110Depends:104Depends: ${shlibs:Depends},
111 ${shlibs:Depends},105 ${misc:Depends},
112 ${misc:Depends},106 libnm-gtk0 (= ${binary:Version}),
113 libnm-gtk0 (= ${binary:Version}),107 gir1.2-nmgtk-1.0 (= ${binary:Version}),
114 gir1.2-nmgtk-1.0 (= ${binary:Version}),108 network-manager-dev (>= 1.0.0),
115 network-manager-dev (>= 0.9),109 libnm-util-dev (>= 1.0.0),
116 libnm-util-dev (>= 0.9),110 libnm-glib-dev (>= 1.0.0),
117 libnm-glib-dev (>= 0.9),111 libgtk-3-dev,
118 libgtk-3-dev,112 libdbus-glib-1-dev
119 libdbus-glib-1-dev
120Description: network management framework (dialogs development libraries)113Description: network management framework (dialogs development libraries)
121 NetworkManager is a system network service that manages your network devices114 NetworkManager is a system network service that manages your network devices
122 and connections, attempting to keep active network connectivity when115 and connections, attempting to keep active network connectivity when
@@ -130,10 +123,10 @@
130Package: gir1.2-nmgtk-1.0123Package: gir1.2-nmgtk-1.0
131Section: introspection124Section: introspection
132Architecture: linux-any125Architecture: linux-any
133Depends:126Multi-Arch: same
134 ${gir:Depends},127Depends: ${gir:Depends},
135 ${shlibs:Depends},128 ${shlibs:Depends},
136 ${misc:Depends}129 ${misc:Depends}
137Description: GObject introspection data for libnm-gtk130Description: GObject introspection data for libnm-gtk
138 NetworkManager is a system network service that manages your network devices131 NetworkManager is a system network service that manages your network devices
139 and connections, attempting to keep active network connectivity when132 and connections, attempting to keep active network connectivity when
140133
=== modified file 'debian/gbp.conf'
--- debian/gbp.conf 2014-01-07 03:29:35 +0000
+++ debian/gbp.conf 2015-12-02 15:57:13 +0000
@@ -1,3 +1,4 @@
1[DEFAULT]1[DEFAULT]
2pristine-tar = True2pristine-tar = True
3patch-numbers = False
3debian-branch = master4debian-branch = master
45
=== modified file 'debian/gir1.2-nmgtk-1.0.install'
--- debian/gir1.2-nmgtk-1.0.install 2015-01-27 01:15:32 +0000
+++ debian/gir1.2-nmgtk-1.0.install 2015-12-02 15:57:13 +0000
@@ -1,1 +1,1 @@
1usr/lib/*/girepository-1.0/ usr/lib/1usr/lib/*/girepository-1.0/
22
=== modified file 'debian/libnm-gtk0.symbols'
--- debian/libnm-gtk0.symbols 2015-10-07 09:23:09 +0000
+++ debian/libnm-gtk0.symbols 2015-12-02 15:57:13 +0000
@@ -1,4 +1,5 @@
1libnm-gtk.so.0 libnm-gtk0 #MINVER#1libnm-gtk.so.0 libnm-gtk0 #MINVER#
2 libnm_gtk_1_0_6@libnm_gtk_1_0_6 1.0.6
2 nma_country_info_get_country_code@Base 0.9.7.9953 nma_country_info_get_country_code@Base 0.9.7.995
3 nma_country_info_get_country_name@Base 0.9.7.9954 nma_country_info_get_country_name@Base 0.9.7.995
4 nma_country_info_get_providers@Base 0.9.7.9955 nma_country_info_get_providers@Base 0.9.7.995
@@ -42,15 +43,15 @@
42 nma_utils_get_device_product@Base 0.9.7.99543 nma_utils_get_device_product@Base 0.9.7.995
43 nma_utils_get_device_type_name@Base 0.9.7.99544 nma_utils_get_device_type_name@Base 0.9.7.995
44 nma_utils_get_device_vendor@Base 0.9.7.99545 nma_utils_get_device_vendor@Base 0.9.7.995
45 nma_utils_menu_to_secret_flags@Base 1.0.446 nma_utils_menu_to_secret_flags@libnm_gtk_1_0_6 1.0.6
46 nma_utils_setup_password_storage@Base 1.0.447 nma_utils_setup_password_storage@libnm_gtk_1_0_6 1.0.6
47 nma_utils_update_password_storage@Base 1.0.448 nma_utils_update_password_storage@libnm_gtk_1_0_6 1.0.6
48 nma_vpn_password_dialog_focus_password@Base 0.9.10.049 nma_vpn_password_dialog_focus_password@Base 0.9.10.0
49 nma_vpn_password_dialog_focus_password_secondary@Base 0.9.10.050 nma_vpn_password_dialog_focus_password_secondary@Base 0.9.10.0
50 nma_vpn_password_dialog_focus_password_ternary@Base 1.0.451 nma_vpn_password_dialog_focus_password_ternary@libnm_gtk_1_0_6 1.0.6
51 nma_vpn_password_dialog_get_password@Base 0.9.10.052 nma_vpn_password_dialog_get_password@Base 0.9.10.0
52 nma_vpn_password_dialog_get_password_secondary@Base 0.9.10.053 nma_vpn_password_dialog_get_password_secondary@Base 0.9.10.0
53 nma_vpn_password_dialog_get_password_ternary@Base 1.0.454 nma_vpn_password_dialog_get_password_ternary@libnm_gtk_1_0_6 1.0.6
54 nma_vpn_password_dialog_get_type@Base 0.9.10.055 nma_vpn_password_dialog_get_type@Base 0.9.10.0
55 nma_vpn_password_dialog_new@Base 0.9.10.056 nma_vpn_password_dialog_new@Base 0.9.10.0
56 nma_vpn_password_dialog_run_and_block@Base 0.9.10.057 nma_vpn_password_dialog_run_and_block@Base 0.9.10.0
@@ -58,11 +59,11 @@
58 nma_vpn_password_dialog_set_password_label@Base 0.9.10.059 nma_vpn_password_dialog_set_password_label@Base 0.9.10.0
59 nma_vpn_password_dialog_set_password_secondary@Base 0.9.10.060 nma_vpn_password_dialog_set_password_secondary@Base 0.9.10.0
60 nma_vpn_password_dialog_set_password_secondary_label@Base 0.9.10.061 nma_vpn_password_dialog_set_password_secondary_label@Base 0.9.10.0
61 nma_vpn_password_dialog_set_password_ternary@Base 1.0.462 nma_vpn_password_dialog_set_password_ternary@libnm_gtk_1_0_6 1.0.6
62 nma_vpn_password_dialog_set_password_ternary_label@Base 1.0.463 nma_vpn_password_dialog_set_password_ternary_label@libnm_gtk_1_0_6 1.0.6
63 nma_vpn_password_dialog_set_show_password@Base 0.9.10.064 nma_vpn_password_dialog_set_show_password@Base 0.9.10.0
64 nma_vpn_password_dialog_set_show_password_secondary@Base 0.9.10.065 nma_vpn_password_dialog_set_show_password_secondary@Base 0.9.10.0
65 nma_vpn_password_dialog_set_show_password_ternary@Base 1.0.466 nma_vpn_password_dialog_set_show_password_ternary@libnm_gtk_1_0_6 1.0.6
66 nma_wifi_dialog_get_connection@Base 0.9.6.467 nma_wifi_dialog_get_connection@Base 0.9.6.4
67 nma_wifi_dialog_get_nag_ignored@Base 0.9.6.468 nma_wifi_dialog_get_nag_ignored@Base 0.9.6.4
68 nma_wifi_dialog_get_type@Base 0.9.6.469 nma_wifi_dialog_get_type@Base 0.9.6.4
6970
=== modified file 'debian/network-manager-gnome.README.Debian'
--- debian/network-manager-gnome.README.Debian 2011-05-05 20:36:27 +0000
+++ debian/network-manager-gnome.README.Debian 2015-12-02 15:57:13 +0000
@@ -1,6 +1,11 @@
1network-manager-gnome provides a Notification Area applet called nm-applet for1network-manager-gnome provides a Notification Area applet called nm-applet for
2conveniently choosing wired and wireless networks in GNOME, KDE and XFCE.2conveniently choosing wired and wireless networks in GNOME, KDE and XFCE.
33
4network-manager-gnome (by virtue of the fact it uses network-manager)
5requires users to be in the group 'netdev' for it to work. If users aren't
6in the group 'netdev' then it won't automatically appear, and work, in the
7Notification Area.
8
4network-manager-gnome uses network-manager. Please see the9network-manager-gnome uses network-manager. Please see the
5network-mananger documentation in 10network-mananger documentation in
6/usr/share/doc/network-manager/README.Debian for further information.11/usr/share/doc/network-manager/README.Debian for further information.
712
=== removed file 'debian/network-manager-gnome.manpages'
--- debian/network-manager-gnome.manpages 2011-05-05 20:40:26 +0000
+++ debian/network-manager-gnome.manpages 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1debian/nm-applet.1
20
=== added file 'debian/network-manager-gnome.postinst'
--- debian/network-manager-gnome.postinst 1970-01-01 00:00:00 +0000
+++ debian/network-manager-gnome.postinst 2015-12-02 15:57:13 +0000
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.9.0-2 ; then
6 [ -x /usr/share/update-notifier/notify-reboot-required ] && \
7 /usr/share/update-notifier/notify-reboot-required || true
8fi
9
10#DEBHELPER#
011
=== removed file 'debian/nm-applet.sgml'
--- debian/nm-applet.sgml 2011-05-05 20:40:26 +0000
+++ debian/nm-applet.sgml 1970-01-01 00:00:00 +0000
@@ -1,100 +0,0 @@
1<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2
3<!-- Process this file with docbook-to-man to generate an nroff manual
4 page: `docbook-to-man manpage.sgml > manpage.1'. You may view
5 the manual page with: `docbook-to-man manpage.sgml | nroff -man |
6 less'. A typical entry in a Makefile or Makefile.am is:
7
8manpage.1: manpage.sgml
9 docbook-to-man $< > $@
10
11
12 The docbook-to-man binary is found in the docbook-to-man package.
13 Please remember that if you create the nroff version in one of the
14 debian/rules file targets (such as build), you will need to include
15 docbook-to-man in your Build-Depends control field.
16
17 -->
18
19 <!-- Please adjust the date whenever revising the manpage. -->
20 <!ENTITY date "<date>8 February, 2006</date>">
21 <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
22 allowed: see man(7), man(1). -->
23 <!ENTITY package "nm-applet">
24 <!ENTITY gnu "<acronym>GNU</acronym>">
25 <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
26]>
27
28<refentry>
29 <refentryinfo>
30 <address>
31 <email>giskard@autistici.org</email>;
32 </address>
33 <author>
34 <firstname>Riccardo</firstname>
35 <surname>Setti</surname>
36 </author>
37 <copyright>
38 <year>2006</year>
39 <holder>Riccardo Setti</holder>
40 </copyright>
41 &date;
42 </refentryinfo>
43 <refmeta>
44 <refentrytitle>nm-applet</refentrytitle>
45 <manvolnum>1</manvolnum>
46 </refmeta>
47 <refnamediv>
48 <refname>&package;</refname>
49
50 <refpurpose>Network management framework</refpurpose>
51 </refnamediv>
52 <refsynopsisdiv>
53 <cmdsynopsis>
54 <command>&package;</command>
55 </cmdsynopsis>
56 </refsynopsisdiv>
57 <refsect1>
58 <title>DESCRIPTION</title>
59
60 <para><command>&package;</command> is the GNOME front-end for NetworkManager</para>
61 <para>It is a systray applet which will display an icon in GNOME's notification area but it
62 also works for other desktop environments which provide a systray like KDE or XFCE.</para>
63 <para><command>&package;</command> shows a list of available networks and allows you to easily switch between them. For encrypted networks it
64 will prompt you for the key/passphrase and you can optionally store them in the gnome-keyring so you don't have to
65 type them again.</para>
66 </refsect1>
67 <refsect1>
68 <title>SEE ALSO</title>
69
70 <para>NetworkManager(8), nm-tool(1)</para>
71
72 <para>More Information about NetworkManager can be found at
73 http://www.gnome.org/projects/NetworkManager/ .</para>
74 </refsect1>
75 <refsect1>
76 <title>AUTHOR</title>
77
78 <para>This manual page was written by Riccardo Setti <email>giskard@autistici.org</email> for
79 the <productname>Debian</productname> system.
80 </para>
81
82 </refsect1>
83</refentry>
84
85<!-- Keep this comment at the end of the file
86Local variables:
87mode: sgml
88sgml-omittag:t
89sgml-shorttag:t
90sgml-minimize-attributes:nil
91sgml-always-quote-attributes:t
92sgml-indent-step:2
93sgml-indent-data:t
94sgml-parent-document:nil
95sgml-default-dtd-file:nil
96sgml-exposed-tags:nil
97sgml-local-catalogs:nil
98sgml-local-ecat-files:nil
99End:
100-->
1010
=== removed file 'debian/patches/11-user-connections.patch'
--- debian/patches/11-user-connections.patch 2015-10-07 09:18:50 +0000
+++ debian/patches/11-user-connections.patch 1970-01-01 00:00:00 +0000
@@ -1,698 +0,0 @@
1From: Josselin Mouette <joss@debian.org>
2Subject: Set passwords as agent-owned when they need to, to allow users
3 without modify.system permissions to easily configure their connections.
4Last-Update: 2014-03-18
5
6---
7 src/applet-device-wifi.c | 25 +++++++++++++++++++++++++
8 src/connection-editor/ce-page.h | 1 +
9 src/connection-editor/new-connection.c | 2 ++
10 src/connection-editor/page-bond.c | 1 +
11 src/connection-editor/page-bond.h | 1 +
12 src/connection-editor/page-bridge.c | 1 +
13 src/connection-editor/page-bridge.h | 1 +
14 src/connection-editor/page-dsl.c | 1 +
15 src/connection-editor/page-dsl.h | 1 +
16 src/connection-editor/page-ethernet.c | 1 +
17 src/connection-editor/page-ethernet.h | 1 +
18 src/connection-editor/page-infiniband.c | 1 +
19 src/connection-editor/page-infiniband.h | 1 +
20 src/connection-editor/page-mobile.c | 11 +++++++++++
21 src/connection-editor/page-mobile.h | 1 +
22 src/connection-editor/page-vlan.c | 1 +
23 src/connection-editor/page-vlan.h | 1 +
24 src/connection-editor/page-vpn.c | 11 +++++++++++
25 src/connection-editor/page-vpn.h | 2 ++
26 src/connection-editor/page-wifi.c | 14 ++++++++++++++
27 src/connection-editor/page-wifi.h | 1 +
28 src/connection-editor/page-wimax.c | 1 +
29 src/connection-editor/page-wimax.h | 1 +
30 src/gnome-bluetooth/nma-bt-device.c | 5 +++++
31 src/libnm-gtk/nm-wifi-dialog.c | 4 ++++
32 src/mobile-helpers.c | 3 +++
33 src/utils/utils.c | 7 +++++++
34 src/utils/utils.h | 3 +++
35 src/wireless-security/ws-wep-key.c | 7 +++++++
36 src/wireless-security/ws-wpa-psk.c | 5 +++++
37 30 files changed, 116 insertions(+)
38
39Index: network-manager-applet-1.0.4/src/applet-device-wifi.c
40===================================================================
41--- network-manager-applet-1.0.4.orig/src/applet-device-wifi.c
42+++ network-manager-applet-1.0.4/src/applet-device-wifi.c
43@@ -559,6 +559,7 @@ _do_new_auto_connection (NMApplet *apple
44 NMSettingWirelessSecurity *s_wsec = NULL;
45 NMSetting8021x *s_8021x = NULL;
46 const GByteArray *ssid;
47+ NM80211ApFlags flags;
48 NM80211ApSecurityFlags wpa_flags, rsn_flags;
49 GtkWidget *dialog;
50 MoreInfo *more_info;
51@@ -590,6 +591,7 @@ _do_new_auto_connection (NMApplet *apple
52 /* If the AP is WPA[2]-Enterprise then we need to set up a minimal 802.1x
53 * setting and ask the user for more information.
54 */
55+ flags = nm_access_point_get_flags (ap);
56 rsn_flags = nm_access_point_get_rsn_flags (ap);
57 wpa_flags = nm_access_point_get_wpa_flags (ap);
58 if ( (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X)
59@@ -618,6 +620,29 @@ _do_new_auto_connection (NMApplet *apple
60 nm_connection_add_setting (connection, NM_SETTING (s_8021x));
61 }
62
63+ if (utils_default_to_private_connection (applet->nm_client)) {
64+ if (!s_con) {
65+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
66+ nm_connection_add_setting (connection, NM_SETTING (s_con));
67+ }
68+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
69+
70+ if ((rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK) ||
71+ (wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)) {
72+ if (!s_wsec) {
73+ s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new ();
74+ nm_connection_add_setting (connection, NM_SETTING (s_wsec));
75+ }
76+ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
77+ } else if (flags & NM_802_11_AP_FLAGS_PRIVACY) {
78+ if (!s_wsec) {
79+ s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new ();
80+ nm_connection_add_setting (connection, NM_SETTING (s_wsec));
81+ }
82+ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
83+ }
84+ }
85+
86 /* If it's an 802.1x connection, we need more information, so pop up the
87 * Dialog Of Doom.
88 */
89Index: network-manager-applet-1.0.4/src/connection-editor/ce-page.h
90===================================================================
91--- network-manager-applet-1.0.4.orig/src/connection-editor/ce-page.h
92+++ network-manager-applet-1.0.4/src/connection-editor/ce-page.h
93@@ -48,6 +48,7 @@ typedef void (*PageNewConnectionFunc) (G
94 const char *detail,
95 NMRemoteSettings *settings,
96 PageNewConnectionResultFunc result_func,
97+ NMClient *client,
98 gpointer user_data);
99
100 #define CE_TYPE_PAGE (ce_page_get_type ())
101Index: network-manager-applet-1.0.4/src/connection-editor/page-bond.c
102===================================================================
103--- network-manager-applet-1.0.4.orig/src/connection-editor/page-bond.c
104+++ network-manager-applet-1.0.4/src/connection-editor/page-bond.c
105@@ -611,6 +611,7 @@ bond_connection_new (GtkWindow *parent,
106 const char *detail,
107 NMRemoteSettings *settings,
108 PageNewConnectionResultFunc result_func,
109+ NMClient *client,
110 gpointer user_data)
111 {
112 NMConnection *connection;
113Index: network-manager-applet-1.0.4/src/connection-editor/page-bond.h
114===================================================================
115--- network-manager-applet-1.0.4.orig/src/connection-editor/page-bond.h
116+++ network-manager-applet-1.0.4/src/connection-editor/page-bond.h
117@@ -56,6 +56,7 @@ void bond_connection_new (GtkWindow *par
118 const char *detail,
119 NMRemoteSettings *settings,
120 PageNewConnectionResultFunc result_func,
121+ NMClient *client,
122 gpointer user_data);
123
124 #endif /* __PAGE_BOND_H__ */
125Index: network-manager-applet-1.0.4/src/connection-editor/page-bridge.c
126===================================================================
127--- network-manager-applet-1.0.4.orig/src/connection-editor/page-bridge.c
128+++ network-manager-applet-1.0.4/src/connection-editor/page-bridge.c
129@@ -294,6 +294,7 @@ bridge_connection_new (GtkWindow *parent
130 const char *detail,
131 NMRemoteSettings *settings,
132 PageNewConnectionResultFunc result_func,
133+ NMClient *client,
134 gpointer user_data)
135 {
136 NMConnection *connection;
137Index: network-manager-applet-1.0.4/src/connection-editor/page-bridge.h
138===================================================================
139--- network-manager-applet-1.0.4.orig/src/connection-editor/page-bridge.h
140+++ network-manager-applet-1.0.4/src/connection-editor/page-bridge.h
141@@ -56,6 +56,7 @@ void bridge_connection_new (GtkWindow *p
142 const char *detail,
143 NMRemoteSettings *settings,
144 PageNewConnectionResultFunc result_func,
145+ NMClient *client,
146 gpointer user_data);
147
148 #endif /* __PAGE_BRIDGE_H__ */
149Index: network-manager-applet-1.0.4/src/connection-editor/page-dsl.c
150===================================================================
151--- network-manager-applet-1.0.4.orig/src/connection-editor/page-dsl.c
152+++ network-manager-applet-1.0.4/src/connection-editor/page-dsl.c
153@@ -221,6 +221,7 @@ dsl_connection_new (GtkWindow *parent,
154 const char *detail,
155 NMRemoteSettings *settings,
156 PageNewConnectionResultFunc result_func,
157+ NMClient *client,
158 gpointer user_data)
159 {
160 NMConnection *connection;
161Index: network-manager-applet-1.0.4/src/connection-editor/page-dsl.h
162===================================================================
163--- network-manager-applet-1.0.4.orig/src/connection-editor/page-dsl.h
164+++ network-manager-applet-1.0.4/src/connection-editor/page-dsl.h
165@@ -58,6 +58,7 @@ void dsl_connection_new (GtkWindow *pare
166 const char *detail,
167 NMRemoteSettings *settings,
168 PageNewConnectionResultFunc callback,
169+ NMClient *client,
170 gpointer user_data);
171
172 #endif /* __PAGE_DSL_H__ */
173Index: network-manager-applet-1.0.4/src/connection-editor/page-ethernet.c
174===================================================================
175--- network-manager-applet-1.0.4.orig/src/connection-editor/page-ethernet.c
176+++ network-manager-applet-1.0.4/src/connection-editor/page-ethernet.c
177@@ -377,6 +377,7 @@ ethernet_connection_new (GtkWindow *pare
178 const char *detail,
179 NMRemoteSettings *settings,
180 PageNewConnectionResultFunc result_func,
181+ NMClient *client,
182 gpointer user_data)
183 {
184 NMConnection *connection;
185Index: network-manager-applet-1.0.4/src/connection-editor/page-ethernet.h
186===================================================================
187--- network-manager-applet-1.0.4.orig/src/connection-editor/page-ethernet.h
188+++ network-manager-applet-1.0.4/src/connection-editor/page-ethernet.h
189@@ -58,6 +58,7 @@ void ethernet_connection_new (GtkWindow
190 const char *detail,
191 NMRemoteSettings *settings,
192 PageNewConnectionResultFunc result_func,
193+ NMClient *client,
194 gpointer user_data);
195
196 #endif /* __PAGE_ETHERNET_H__ */
197Index: network-manager-applet-1.0.4/src/connection-editor/page-infiniband.c
198===================================================================
199--- network-manager-applet-1.0.4.orig/src/connection-editor/page-infiniband.c
200+++ network-manager-applet-1.0.4/src/connection-editor/page-infiniband.c
201@@ -253,6 +253,7 @@ infiniband_connection_new (GtkWindow *pa
202 const char *detail,
203 NMRemoteSettings *settings,
204 PageNewConnectionResultFunc result_func,
205+ NMClient *client,
206 gpointer user_data)
207 {
208 NMConnection *connection;
209Index: network-manager-applet-1.0.4/src/connection-editor/page-infiniband.h
210===================================================================
211--- network-manager-applet-1.0.4.orig/src/connection-editor/page-infiniband.h
212+++ network-manager-applet-1.0.4/src/connection-editor/page-infiniband.h
213@@ -56,6 +56,7 @@ void infiniband_connection_new (GtkWindo
214 const char *detail,
215 NMRemoteSettings *settings,
216 PageNewConnectionResultFunc result_func,
217+ NMClient *client,
218 gpointer user_data);
219
220 #endif /* __PAGE_INFINIBAND_H__ */
221Index: network-manager-applet-1.0.4/src/connection-editor/page-mobile.c
222===================================================================
223--- network-manager-applet-1.0.4.orig/src/connection-editor/page-mobile.c
224+++ network-manager-applet-1.0.4/src/connection-editor/page-mobile.c
225@@ -452,6 +452,7 @@ new_connection_mobile_wizard_done (NMAMo
226 NMConnection *connection = NULL;
227
228 if (!canceled && method) {
229+ NMSettingConnection *s_con;
230 NMSetting *type_setting;
231 const char *ctype = NULL;
232 char *detail = NULL;
233@@ -465,6 +466,7 @@ new_connection_mobile_wizard_done (NMAMo
234 NM_SETTING_GSM_NUMBER, "*99#",
235 NM_SETTING_GSM_USERNAME, method->username,
236 NM_SETTING_GSM_PASSWORD, method->password,
237+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
238 NM_SETTING_GSM_APN, method->gsm_apn,
239 NULL);
240 break;
241@@ -476,6 +478,7 @@ new_connection_mobile_wizard_done (NMAMo
242 NM_SETTING_CDMA_NUMBER, "#777",
243 NM_SETTING_GSM_USERNAME, method->username,
244 NM_SETTING_GSM_PASSWORD, method->password,
245+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
246 NULL);
247 break;
248 default:
249@@ -490,6 +493,13 @@ new_connection_mobile_wizard_done (NMAMo
250 connection = ce_page_new_connection (detail, ctype, FALSE, info->settings, info->user_data);
251 g_free (detail);
252
253+ s_con = nm_connection_get_setting_connection (connection);
254+ if (!s_con) {
255+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
256+ nm_connection_add_setting (connection, NM_SETTING (s_con));
257+ }
258+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
259+
260 nm_connection_add_setting (connection, type_setting);
261 nm_connection_add_setting (connection, nm_setting_ppp_new ());
262 }
263@@ -514,6 +524,7 @@ mobile_connection_new (GtkWindow *parent
264 const char *detail,
265 NMRemoteSettings *settings,
266 PageNewConnectionResultFunc result_func,
267+ NMClient *client,
268 gpointer user_data)
269 {
270 NMAMobileWizard *wizard;
271Index: network-manager-applet-1.0.4/src/connection-editor/page-mobile.h
272===================================================================
273--- network-manager-applet-1.0.4.orig/src/connection-editor/page-mobile.h
274+++ network-manager-applet-1.0.4/src/connection-editor/page-mobile.h
275@@ -58,6 +58,7 @@ void mobile_connection_new (GtkWindow *p
276 const char *detail,
277 NMRemoteSettings *settings,
278 PageNewConnectionResultFunc result_func,
279+ NMClient *client,
280 gpointer user_data);
281
282 #endif /* __PAGE_MOBILE_H__ */
283Index: network-manager-applet-1.0.4/src/connection-editor/page-vlan.c
284===================================================================
285--- network-manager-applet-1.0.4.orig/src/connection-editor/page-vlan.c
286+++ network-manager-applet-1.0.4/src/connection-editor/page-vlan.c
287@@ -673,6 +673,7 @@ vlan_connection_new (GtkWindow *parent,
288 const char *detail,
289 NMRemoteSettings *settings,
290 PageNewConnectionResultFunc result_func,
291+ NMClient *client,
292 gpointer user_data)
293 {
294 NMConnection *connection;
295Index: network-manager-applet-1.0.4/src/connection-editor/page-vlan.h
296===================================================================
297--- network-manager-applet-1.0.4.orig/src/connection-editor/page-vlan.h
298+++ network-manager-applet-1.0.4/src/connection-editor/page-vlan.h
299@@ -56,6 +56,7 @@ void vlan_connection_new (GtkWindow *par
300 const char *detail,
301 NMRemoteSettings *settings,
302 PageNewConnectionResultFunc result_func,
303+ NMClient *client,
304 gpointer user_data);
305
306 #endif /* __PAGE_VLAN_H__ */
307Index: network-manager-applet-1.0.4/src/connection-editor/page-vpn.c
308===================================================================
309--- network-manager-applet-1.0.4.orig/src/connection-editor/page-vpn.c
310+++ network-manager-applet-1.0.4/src/connection-editor/page-vpn.c
311@@ -253,6 +253,7 @@ vpn_connection_import (GtkWindow *parent
312 const char *detail,
313 NMRemoteSettings *settings,
314 PageNewConnectionResultFunc result_func,
315+ NMClient *client,
316 gpointer user_data)
317 {
318 NewVpnInfo *info;
319@@ -287,9 +288,11 @@ vpn_connection_new (GtkWindow *parent,
320 const char *detail,
321 NMRemoteSettings *settings,
322 PageNewConnectionResultFunc result_func,
323+ NMClient *client,
324 gpointer user_data)
325 {
326 NMConnection *connection;
327+ NMSettingConnection *s_con;
328 NMSetting *s_vpn;
329
330 if (!detail) {
331@@ -315,6 +318,14 @@ vpn_connection_new (GtkWindow *parent,
332 FALSE,
333 settings,
334 user_data);
335+
336+ s_con = nm_connection_get_setting_connection (connection);
337+ if (!s_con) {
338+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
339+ nm_connection_add_setting (connection, NM_SETTING (s_con));
340+ }
341+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
342+
343 s_vpn = nm_setting_vpn_new ();
344 g_object_set (s_vpn, NM_SETTING_VPN_SERVICE_TYPE, detail, NULL);
345 nm_connection_add_setting (connection, s_vpn);
346Index: network-manager-applet-1.0.4/src/connection-editor/page-vpn.h
347===================================================================
348--- network-manager-applet-1.0.4.orig/src/connection-editor/page-vpn.h
349+++ network-manager-applet-1.0.4/src/connection-editor/page-vpn.h
350@@ -60,12 +60,14 @@ void vpn_connection_new (GtkWindow *pare
351 const char *detail,
352 NMRemoteSettings *settings,
353 PageNewConnectionResultFunc result_func,
354+ NMClient *client,
355 gpointer user_data);
356
357 void vpn_connection_import (GtkWindow *parent,
358 const char *detail,
359 NMRemoteSettings *settings,
360 PageNewConnectionResultFunc result_func,
361+ NMClient *client,
362 gpointer user_data);
363
364 #endif /* __PAGE_VPN_H__ */
365Index: network-manager-applet-1.0.4/src/connection-editor/page-wifi.c
366===================================================================
367--- network-manager-applet-1.0.4.orig/src/connection-editor/page-wifi.c
368+++ network-manager-applet-1.0.4/src/connection-editor/page-wifi.c
369@@ -33,6 +33,8 @@
370 #include <nm-device-wifi.h>
371 #include <nm-utils.h>
372
373+#include "utils.h"
374+
375 #include "page-wifi.h"
376
377 G_DEFINE_TYPE (CEPageWifi, ce_page_wifi, CE_TYPE_PAGE)
378@@ -622,6 +624,7 @@ wifi_connection_new (GtkWindow *parent,
379 const char *detail,
380 NMRemoteSettings *settings,
381 PageNewConnectionResultFunc result_func,
382+ NMClient *client,
383 gpointer user_data)
384 {
385 NMConnection *connection;
386@@ -632,6 +635,17 @@ wifi_connection_new (GtkWindow *parent,
387 TRUE,
388 settings,
389 user_data);
390+
391+ if (utils_default_to_private_connection (client)) {
392+ NMSettingConnection *s_con;
393+ s_con = nm_connection_get_setting_connection (connection);
394+ if (!s_con) {
395+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
396+ nm_connection_add_setting (connection, NM_SETTING (s_con));
397+ }
398+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
399+ }
400+
401 s_wifi = nm_setting_wireless_new ();
402 g_object_set (s_wifi, NM_SETTING_WIRELESS_MODE, "infrastructure", NULL);
403 nm_connection_add_setting (connection, s_wifi);
404Index: network-manager-applet-1.0.4/src/connection-editor/page-wifi.h
405===================================================================
406--- network-manager-applet-1.0.4.orig/src/connection-editor/page-wifi.h
407+++ network-manager-applet-1.0.4/src/connection-editor/page-wifi.h
408@@ -62,6 +62,7 @@ void wifi_connection_new (GtkWindow *par
409 const char *detail,
410 NMRemoteSettings *settings,
411 PageNewConnectionResultFunc result_func,
412+ NMClient *client,
413 gpointer user_data);
414
415 #endif /* __PAGE_WIFI_H__ */
416Index: network-manager-applet-1.0.4/src/connection-editor/page-wimax.c
417===================================================================
418--- network-manager-applet-1.0.4.orig/src/connection-editor/page-wimax.c
419+++ network-manager-applet-1.0.4/src/connection-editor/page-wimax.c
420@@ -216,6 +216,7 @@ wimax_connection_new (GtkWindow *parent,
421 const char *detail,
422 NMRemoteSettings *settings,
423 PageNewConnectionResultFunc result_func,
424+ NMClient *client,
425 gpointer user_data)
426 {
427 NMConnection *connection;
428Index: network-manager-applet-1.0.4/src/connection-editor/page-wimax.h
429===================================================================
430--- network-manager-applet-1.0.4.orig/src/connection-editor/page-wimax.h
431+++ network-manager-applet-1.0.4/src/connection-editor/page-wimax.h
432@@ -56,6 +56,7 @@ void wimax_connection_new (GtkWindow *pa
433 const char *detail,
434 NMRemoteSettings *settings,
435 PageNewConnectionResultFunc result_func,
436+ NMClient *client,
437 gpointer user_data);
438
439 #endif /* __PAGE_WIMAX_H__ */
440Index: network-manager-applet-1.0.4/src/gnome-bluetooth/nma-bt-device.c
441===================================================================
442--- network-manager-applet-1.0.4.orig/src/gnome-bluetooth/nma-bt-device.c
443+++ network-manager-applet-1.0.4/src/gnome-bluetooth/nma-bt-device.c
444@@ -342,6 +342,7 @@ dun_new_cdma (NMAMobileWizardAccessMetho
445 NM_SETTING_CDMA_NUMBER, "#777",
446 NM_SETTING_CDMA_USERNAME, method->username,
447 NM_SETTING_CDMA_PASSWORD, method->password,
448+ NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
449 NULL);
450 nm_connection_add_setting (connection, setting);
451
452@@ -368,6 +369,7 @@ dun_new_cdma (NMAMobileWizardAccessMetho
453 NULL);
454 g_free (uuid);
455 g_free (id);
456+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
457 nm_connection_add_setting (connection, setting);
458
459 return connection;
460@@ -387,6 +389,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod
461 NM_SETTING_GSM_NUMBER, "*99#",
462 NM_SETTING_GSM_USERNAME, method->username,
463 NM_SETTING_GSM_PASSWORD, method->password,
464+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
465 NM_SETTING_GSM_APN, method->gsm_apn,
466 NULL);
467 nm_connection_add_setting (connection, setting);
468@@ -414,6 +417,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod
469 NULL);
470 g_free (uuid);
471 g_free (id);
472+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
473 nm_connection_add_setting (connection, setting);
474
475 return connection;
476@@ -978,6 +982,7 @@ add_pan_connection (NmaBtDevice *self)
477 NULL);
478 g_free (id);
479 g_free (uuid);
480+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
481 nm_connection_add_setting (connection, setting);
482
483 /* The Bluetooth settings */
484Index: network-manager-applet-1.0.4/src/libnm-gtk/nm-wifi-dialog.c
485===================================================================
486--- network-manager-applet-1.0.4.orig/src/libnm-gtk/nm-wifi-dialog.c
487+++ network-manager-applet-1.0.4/src/libnm-gtk/nm-wifi-dialog.c
488@@ -38,6 +38,7 @@
489 #include "nm-wifi-dialog.h"
490 #include "wireless-security.h"
491 #include "nm-ui-utils.h"
492+#include "utils.h"
493 #include "eap-method.h"
494
495 G_DEFINE_TYPE (NMAWifiDialog, nma_wifi_dialog, GTK_TYPE_DIALOG)
496@@ -1202,6 +1203,9 @@ nma_wifi_dialog_get_connection (NMAWifiD
497 NM_SETTING_CONNECTION_UUID, uuid,
498 NULL);
499 g_free (uuid);
500+ if (utils_default_to_private_connection (priv->client)) {
501+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
502+ }
503 nm_connection_add_setting (connection, (NMSetting *) s_con);
504
505 s_wireless = (NMSettingWireless *) nm_setting_wireless_new ();
506Index: network-manager-applet-1.0.4/src/mobile-helpers.c
507===================================================================
508--- network-manager-applet-1.0.4.orig/src/mobile-helpers.c
509+++ network-manager-applet-1.0.4/src/mobile-helpers.c
510@@ -307,6 +307,7 @@ mobile_wizard_done (NMAMobileWizard *wiz
511 NM_SETTING_CDMA_NUMBER, "#777",
512 NM_SETTING_CDMA_USERNAME, method->username,
513 NM_SETTING_CDMA_PASSWORD, method->password,
514+ NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
515 NULL);
516 nm_connection_add_setting (connection, setting);
517 } else if (method->devtype == NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS) {
518@@ -317,6 +318,7 @@ mobile_wizard_done (NMAMobileWizard *wiz
519 NM_SETTING_GSM_USERNAME, method->username,
520 NM_SETTING_GSM_PASSWORD, method->password,
521 NM_SETTING_GSM_APN, method->gsm_apn,
522+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
523 NULL);
524 nm_connection_add_setting (connection, setting);
525 } else
526@@ -347,6 +349,7 @@ mobile_wizard_done (NMAMobileWizard *wiz
527 "user", g_get_user_name (), NULL);
528 g_free (uuid);
529 g_free (id);
530+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
531 nm_connection_add_setting (connection, setting);
532 }
533
534Index: network-manager-applet-1.0.4/src/utils/utils.c
535===================================================================
536--- network-manager-applet-1.0.4.orig/src/utils/utils.c
537+++ network-manager-applet-1.0.4/src/utils/utils.c
538@@ -288,3 +288,10 @@ utils_filter_editable_on_insert_text (Gt
539 return count > 0;
540 }
541
542+gboolean
543+utils_default_to_private_connection (NMClient *client)
544+{
545+ NMClientPermissionResult perms;
546+ perms = nm_client_get_permission_result (client, NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM);
547+ return (perms != NM_CLIENT_PERMISSION_RESULT_YES);
548+}
549Index: network-manager-applet-1.0.4/src/utils/utils.h
550===================================================================
551--- network-manager-applet-1.0.4.orig/src/utils/utils.h
552+++ network-manager-applet-1.0.4/src/utils/utils.h
553@@ -27,6 +27,7 @@
554 #include <gtk/gtk.h>
555 #include <nm-connection.h>
556 #include <nm-device.h>
557+#include <nm-client.h>
558 #include <net/ethernet.h>
559 #include <nm-access-point.h>
560
561@@ -85,6 +86,8 @@ void utils_show_error_dialog (const char
562 gboolean modal,
563 GtkWindow *parent);
564
565+gboolean utils_default_to_private_connection (NMClient *client);
566+
567 #define NMA_ERROR (g_quark_from_static_string ("nma-error-quark"))
568
569 typedef enum {
570Index: network-manager-applet-1.0.4/src/wireless-security/ws-wep-key.c
571===================================================================
572--- network-manager-applet-1.0.4.orig/src/wireless-security/ws-wep-key.c
573+++ network-manager-applet-1.0.4/src/wireless-security/ws-wep-key.c
574@@ -147,6 +147,7 @@ static void
575 fill_connection (WirelessSecurity *parent, NMConnection *connection)
576 {
577 WirelessSecurityWEPKey *sec = (WirelessSecurityWEPKey *) parent;
578+ NMSettingConnection *s_con;
579 NMSettingWirelessSecurity *s_wsec;
580 NMSettingSecretFlags secret_flags;
581 GtkWidget *widget, *passwd_entry;
582@@ -162,6 +163,8 @@ fill_connection (WirelessSecurity *paren
583 key = gtk_entry_get_text (GTK_ENTRY (widget));
584 strcpy (sec->keys[sec->cur_index], key);
585
586+ s_con = nm_connection_get_setting_connection (connection);
587+
588 /* Blow away the old security setting by adding a clear one */
589 s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new ();
590 nm_connection_add_setting (connection, (NMSetting *) s_wsec);
591@@ -173,6 +176,10 @@ fill_connection (WirelessSecurity *paren
592 NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, sec->type,
593 NULL);
594
595+ /* If the connection is user-owned, mark the secrets as agent-owned */
596+ if (s_con && nm_setting_connection_get_num_permissions (s_con))
597+ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
598+
599 for (i = 0; i < 4; i++) {
600 if (strlen (sec->keys[i]))
601 nm_setting_wireless_security_set_wep_key (s_wsec, i, sec->keys[i]);
602Index: network-manager-applet-1.0.4/src/wireless-security/ws-wpa-psk.c
603===================================================================
604--- network-manager-applet-1.0.4.orig/src/wireless-security/ws-wpa-psk.c
605+++ network-manager-applet-1.0.4/src/wireless-security/ws-wpa-psk.c
606@@ -97,12 +97,14 @@ fill_connection (WirelessSecurity *paren
607 WirelessSecurityWPAPSK *wpa_psk = (WirelessSecurityWPAPSK *) parent;
608 GtkWidget *widget, *passwd_entry;
609 const char *key;
610+ NMSettingConnection *s_con;
611 NMSettingWireless *s_wireless;
612 NMSettingWirelessSecurity *s_wireless_sec;
613 NMSettingSecretFlags secret_flags;
614 const char *mode;
615 gboolean is_adhoc = FALSE;
616
617+ s_con = nm_connection_get_setting_connection (connection);
618 s_wireless = nm_connection_get_setting_wireless (connection);
619 g_assert (s_wireless);
620
621@@ -118,6 +120,9 @@ fill_connection (WirelessSecurity *paren
622 passwd_entry = widget;
623 key = gtk_entry_get_text (GTK_ENTRY (widget));
624 g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK, key, NULL);
625+ /* If the connection is user-owned, mark the secrets as agent-owned */
626+ if (s_con && nm_setting_connection_get_num_permissions (s_con))
627+ g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
628
629 /* Save PSK_FLAGS to the connection */
630 secret_flags = nma_utils_menu_to_secret_flags (passwd_entry);
631Index: network-manager-applet-1.0.4/src/connection-editor/page-team.c
632===================================================================
633--- network-manager-applet-1.0.4.orig/src/connection-editor/page-team.c
634+++ network-manager-applet-1.0.4/src/connection-editor/page-team.c
635@@ -329,6 +329,7 @@ team_connection_new (GtkWindow *parent,
636 const char *detail,
637 NMRemoteSettings *settings,
638 PageNewConnectionResultFunc result_func,
639+ NMClient *client,
640 gpointer user_data)
641 {
642 NMConnection *connection;
643Index: network-manager-applet-1.0.4/src/connection-editor/page-team.h
644===================================================================
645--- network-manager-applet-1.0.4.orig/src/connection-editor/page-team.h
646+++ network-manager-applet-1.0.4/src/connection-editor/page-team.h
647@@ -55,6 +55,7 @@ void team_connection_new (GtkWindow *par
648 const char *detail,
649 NMRemoteSettings *settings,
650 PageNewConnectionResultFunc result_func,
651+ NMClient *client,
652 gpointer user_data);
653
654 #endif /* __PAGE_TEAM_H__ */
655Index: network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.c
656===================================================================
657--- network-manager-applet-1.0.4.orig/src/connection-editor/page-bluetooth.c
658+++ network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.c
659@@ -257,6 +257,7 @@ bluetooth_connection_new (GtkWindow *par
660 const char *detail,
661 NMRemoteSettings *settings,
662 PageNewConnectionResultFunc result_func,
663+ NMClient *client,
664 gpointer user_data)
665 {
666 gint response;
667Index: network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.h
668===================================================================
669--- network-manager-applet-1.0.4.orig/src/connection-editor/page-bluetooth.h
670+++ network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.h
671@@ -58,6 +58,7 @@ void bluetooth_connection_new (GtkWindow
672 const char *detail,
673 NMRemoteSettings *settings,
674 PageNewConnectionResultFunc result_func,
675+ NMClient *client,
676 gpointer user_data);
677
678 #endif /* __PAGE_BLUETOOTH_H__ */
679Index: network-manager-applet-1.0.4/src/connection-editor/connection-helpers.c
680===================================================================
681--- network-manager-applet-1.0.4.orig/src/connection-editor/connection-helpers.c
682+++ network-manager-applet-1.0.4/src/connection-editor/connection-helpers.c
683@@ -380,6 +380,7 @@ new_connection_of_type (GtkWindow *paren
684 gpointer user_data)
685 {
686 NewConnectionData *ncd;
687+ NMConnectionList *list = user_data;
688
689 ncd = g_slice_new (NewConnectionData);
690 ncd->parent_window = parent_window;
691@@ -391,6 +392,7 @@ new_connection_of_type (GtkWindow *paren
692 detail,
693 settings,
694 new_connection_result,
695+ list->nm_client,
696 ncd);
697 }
698
6990
=== added file 'debian/patches/Allow-to-create-connections-without-admin-privileges.patch'
--- debian/patches/Allow-to-create-connections-without-admin-privileges.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/Allow-to-create-connections-without-admin-privileges.patch 2015-12-02 15:57:13 +0000
@@ -0,0 +1,683 @@
1From: Michael Biebl <biebl@debian.org>
2Date: Tue, 18 Mar 2014 10:49:13 +0100
3Subject: Allow to create connections without admin privileges
4MIME-Version: 1.0
5Content-Type: text/plain; charset="utf-8"
6Content-Transfer-Encoding: 8bit
7
8Set passwords as agent-owned when they need to, to allow users without
9root permissions to easily configure their connections.
10The logic is:
11- Bluetooth, CDMA and GSM connections: always user-owned
12- WEP/WPA connections: system-owned if user has the permissions
13 (with NM’s config, that is netdev or sudo membership), user-owned
14 otherwise. The password is stored in the keyring for WPA, not for
15 WEP.
16- WiMax / Wired connections: always system-owned (with 802.1x
17 passwords in the keyring).
18
19Closes: #696256
20---
21 src/applet-device-wifi.c | 25 +++++++++++++++++++++++++
22 src/connection-editor/ce-page.h | 1 +
23 src/connection-editor/connection-helpers.c | 2 ++
24 src/connection-editor/page-bond.c | 1 +
25 src/connection-editor/page-bond.h | 1 +
26 src/connection-editor/page-bridge.c | 1 +
27 src/connection-editor/page-bridge.h | 1 +
28 src/connection-editor/page-dsl.c | 1 +
29 src/connection-editor/page-dsl.h | 1 +
30 src/connection-editor/page-ethernet.c | 1 +
31 src/connection-editor/page-ethernet.h | 1 +
32 src/connection-editor/page-infiniband.c | 1 +
33 src/connection-editor/page-infiniband.h | 1 +
34 src/connection-editor/page-mobile.c | 11 +++++++++++
35 src/connection-editor/page-mobile.h | 1 +
36 src/connection-editor/page-team.c | 1 +
37 src/connection-editor/page-team.h | 1 +
38 src/connection-editor/page-vlan.c | 1 +
39 src/connection-editor/page-vlan.h | 1 +
40 src/connection-editor/page-vpn.c | 11 +++++++++++
41 src/connection-editor/page-vpn.h | 2 ++
42 src/connection-editor/page-wifi.c | 14 ++++++++++++++
43 src/connection-editor/page-wifi.h | 1 +
44 src/connection-editor/page-wimax.c | 1 +
45 src/connection-editor/page-wimax.h | 1 +
46 src/gnome-bluetooth/nma-bt-device.c | 5 +++++
47 src/libnm-gtk/nm-wifi-dialog.c | 4 ++++
48 src/mobile-helpers.c | 3 +++
49 src/utils/utils.c | 7 +++++++
50 src/utils/utils.h | 3 +++
51 src/wireless-security/ws-wep-key.c | 7 +++++++
52 src/wireless-security/ws-wpa-psk.c | 5 +++++
53 32 files changed, 118 insertions(+)
54
55diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
56index 0ae44ad..dc7fbc8 100644
57--- a/src/applet-device-wifi.c
58+++ b/src/applet-device-wifi.c
59@@ -386,6 +386,7 @@ _do_new_auto_connection (NMApplet *applet,
60 NMSettingWirelessSecurity *s_wsec = NULL;
61 NMSetting8021x *s_8021x = NULL;
62 const GByteArray *ssid;
63+ NM80211ApFlags flags;
64 NM80211ApSecurityFlags wpa_flags, rsn_flags;
65 GtkWidget *dialog;
66 MoreInfo *more_info;
67@@ -417,6 +418,7 @@ _do_new_auto_connection (NMApplet *applet,
68 /* If the AP is WPA[2]-Enterprise then we need to set up a minimal 802.1x
69 * setting and ask the user for more information.
70 */
71+ flags = nm_access_point_get_flags (ap);
72 rsn_flags = nm_access_point_get_rsn_flags (ap);
73 wpa_flags = nm_access_point_get_wpa_flags (ap);
74 if ( (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X)
75@@ -445,6 +447,29 @@ _do_new_auto_connection (NMApplet *applet,
76 nm_connection_add_setting (connection, NM_SETTING (s_8021x));
77 }
78
79+ if (utils_default_to_private_connection (applet->nm_client)) {
80+ if (!s_con) {
81+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
82+ nm_connection_add_setting (connection, NM_SETTING (s_con));
83+ }
84+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
85+
86+ if ((rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK) ||
87+ (wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)) {
88+ if (!s_wsec) {
89+ s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new ();
90+ nm_connection_add_setting (connection, NM_SETTING (s_wsec));
91+ }
92+ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
93+ } else if (flags & NM_802_11_AP_FLAGS_PRIVACY) {
94+ if (!s_wsec) {
95+ s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new ();
96+ nm_connection_add_setting (connection, NM_SETTING (s_wsec));
97+ }
98+ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
99+ }
100+ }
101+
102 /* If it's an 802.1x connection, we need more information, so pop up the
103 * Dialog Of Doom.
104 */
105diff --git a/src/connection-editor/ce-page.h b/src/connection-editor/ce-page.h
106index 41711d9..521dbc6 100644
107--- a/src/connection-editor/ce-page.h
108+++ b/src/connection-editor/ce-page.h
109@@ -48,6 +48,7 @@ typedef void (*PageNewConnectionFunc) (GtkWindow *parent,
110 const char *detail,
111 NMRemoteSettings *settings,
112 PageNewConnectionResultFunc result_func,
113+ NMClient *client,
114 gpointer user_data);
115
116 #define CE_TYPE_PAGE (ce_page_get_type ())
117diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c
118index 69da25c..b638530 100644
119--- a/src/connection-editor/connection-helpers.c
120+++ b/src/connection-editor/connection-helpers.c
121@@ -380,6 +380,7 @@ new_connection_of_type (GtkWindow *parent_window,
122 gpointer user_data)
123 {
124 NewConnectionData *ncd;
125+ NMConnectionList *list = user_data;
126
127 ncd = g_slice_new (NewConnectionData);
128 ncd->parent_window = parent_window;
129@@ -391,6 +392,7 @@ new_connection_of_type (GtkWindow *parent_window,
130 detail,
131 settings,
132 new_connection_result,
133+ list->nm_client,
134 ncd);
135 }
136
137diff --git a/src/connection-editor/page-bond.c b/src/connection-editor/page-bond.c
138index 799ea94..966625c 100644
139--- a/src/connection-editor/page-bond.c
140+++ b/src/connection-editor/page-bond.c
141@@ -610,6 +610,7 @@ bond_connection_new (GtkWindow *parent,
142 const char *detail,
143 NMRemoteSettings *settings,
144 PageNewConnectionResultFunc result_func,
145+ NMClient *client,
146 gpointer user_data)
147 {
148 NMConnection *connection;
149diff --git a/src/connection-editor/page-bond.h b/src/connection-editor/page-bond.h
150index dcc8e1f..3844869 100644
151--- a/src/connection-editor/page-bond.h
152+++ b/src/connection-editor/page-bond.h
153@@ -56,6 +56,7 @@ void bond_connection_new (GtkWindow *parent,
154 const char *detail,
155 NMRemoteSettings *settings,
156 PageNewConnectionResultFunc result_func,
157+ NMClient *client,
158 gpointer user_data);
159
160 #endif /* __PAGE_BOND_H__ */
161diff --git a/src/connection-editor/page-bridge.c b/src/connection-editor/page-bridge.c
162index 1ffcb1f..34ff9af 100644
163--- a/src/connection-editor/page-bridge.c
164+++ b/src/connection-editor/page-bridge.c
165@@ -294,6 +294,7 @@ bridge_connection_new (GtkWindow *parent,
166 const char *detail,
167 NMRemoteSettings *settings,
168 PageNewConnectionResultFunc result_func,
169+ NMClient *client,
170 gpointer user_data)
171 {
172 NMConnection *connection;
173diff --git a/src/connection-editor/page-bridge.h b/src/connection-editor/page-bridge.h
174index fa6d927..4bd0b95 100644
175--- a/src/connection-editor/page-bridge.h
176+++ b/src/connection-editor/page-bridge.h
177@@ -56,6 +56,7 @@ void bridge_connection_new (GtkWindow *parent,
178 const char *detail,
179 NMRemoteSettings *settings,
180 PageNewConnectionResultFunc result_func,
181+ NMClient *client,
182 gpointer user_data);
183
184 #endif /* __PAGE_BRIDGE_H__ */
185diff --git a/src/connection-editor/page-dsl.c b/src/connection-editor/page-dsl.c
186index c327979..a38f333 100644
187--- a/src/connection-editor/page-dsl.c
188+++ b/src/connection-editor/page-dsl.c
189@@ -221,6 +221,7 @@ dsl_connection_new (GtkWindow *parent,
190 const char *detail,
191 NMRemoteSettings *settings,
192 PageNewConnectionResultFunc result_func,
193+ NMClient *client,
194 gpointer user_data)
195 {
196 NMConnection *connection;
197diff --git a/src/connection-editor/page-dsl.h b/src/connection-editor/page-dsl.h
198index 514699a..656e3c6 100644
199--- a/src/connection-editor/page-dsl.h
200+++ b/src/connection-editor/page-dsl.h
201@@ -58,6 +58,7 @@ void dsl_connection_new (GtkWindow *parent,
202 const char *detail,
203 NMRemoteSettings *settings,
204 PageNewConnectionResultFunc callback,
205+ NMClient *client,
206 gpointer user_data);
207
208 #endif /* __PAGE_DSL_H__ */
209diff --git a/src/connection-editor/page-ethernet.c b/src/connection-editor/page-ethernet.c
210index 451ee22..9372c1e 100644
211--- a/src/connection-editor/page-ethernet.c
212+++ b/src/connection-editor/page-ethernet.c
213@@ -377,6 +377,7 @@ ethernet_connection_new (GtkWindow *parent,
214 const char *detail,
215 NMRemoteSettings *settings,
216 PageNewConnectionResultFunc result_func,
217+ NMClient *client,
218 gpointer user_data)
219 {
220 NMConnection *connection;
221diff --git a/src/connection-editor/page-ethernet.h b/src/connection-editor/page-ethernet.h
222index 4dd4a5c..55ade9b 100644
223--- a/src/connection-editor/page-ethernet.h
224+++ b/src/connection-editor/page-ethernet.h
225@@ -58,6 +58,7 @@ void ethernet_connection_new (GtkWindow *parent,
226 const char *detail,
227 NMRemoteSettings *settings,
228 PageNewConnectionResultFunc result_func,
229+ NMClient *client,
230 gpointer user_data);
231
232 #endif /* __PAGE_ETHERNET_H__ */
233diff --git a/src/connection-editor/page-infiniband.c b/src/connection-editor/page-infiniband.c
234index 19560a2..bb9335e 100644
235--- a/src/connection-editor/page-infiniband.c
236+++ b/src/connection-editor/page-infiniband.c
237@@ -253,6 +253,7 @@ infiniband_connection_new (GtkWindow *parent,
238 const char *detail,
239 NMRemoteSettings *settings,
240 PageNewConnectionResultFunc result_func,
241+ NMClient *client,
242 gpointer user_data)
243 {
244 NMConnection *connection;
245diff --git a/src/connection-editor/page-infiniband.h b/src/connection-editor/page-infiniband.h
246index e895a98..97bff3b 100644
247--- a/src/connection-editor/page-infiniband.h
248+++ b/src/connection-editor/page-infiniband.h
249@@ -56,6 +56,7 @@ void infiniband_connection_new (GtkWindow *parent,
250 const char *detail,
251 NMRemoteSettings *settings,
252 PageNewConnectionResultFunc result_func,
253+ NMClient *client,
254 gpointer user_data);
255
256 #endif /* __PAGE_INFINIBAND_H__ */
257diff --git a/src/connection-editor/page-mobile.c b/src/connection-editor/page-mobile.c
258index ef24184..df3d316 100644
259--- a/src/connection-editor/page-mobile.c
260+++ b/src/connection-editor/page-mobile.c
261@@ -452,6 +452,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard,
262 NMConnection *connection = NULL;
263
264 if (!canceled && method) {
265+ NMSettingConnection *s_con;
266 NMSetting *type_setting;
267 const char *ctype = NULL;
268 char *detail = NULL;
269@@ -465,6 +466,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard,
270 NM_SETTING_GSM_NUMBER, "*99#",
271 NM_SETTING_GSM_USERNAME, method->username,
272 NM_SETTING_GSM_PASSWORD, method->password,
273+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
274 NM_SETTING_GSM_APN, method->gsm_apn,
275 NULL);
276 break;
277@@ -476,6 +478,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard,
278 NM_SETTING_CDMA_NUMBER, "#777",
279 NM_SETTING_GSM_USERNAME, method->username,
280 NM_SETTING_GSM_PASSWORD, method->password,
281+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
282 NULL);
283 break;
284 default:
285@@ -490,6 +493,13 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard,
286 connection = ce_page_new_connection (detail, ctype, FALSE, info->settings, info->user_data);
287 g_free (detail);
288
289+ s_con = nm_connection_get_setting_connection (connection);
290+ if (!s_con) {
291+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
292+ nm_connection_add_setting (connection, NM_SETTING (s_con));
293+ }
294+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
295+
296 nm_connection_add_setting (connection, type_setting);
297 nm_connection_add_setting (connection, nm_setting_ppp_new ());
298 }
299@@ -514,6 +524,7 @@ mobile_connection_new (GtkWindow *parent,
300 const char *detail,
301 NMRemoteSettings *settings,
302 PageNewConnectionResultFunc result_func,
303+ NMClient *client,
304 gpointer user_data)
305 {
306 NMAMobileWizard *wizard;
307diff --git a/src/connection-editor/page-mobile.h b/src/connection-editor/page-mobile.h
308index ab2903c..bc5b479 100644
309--- a/src/connection-editor/page-mobile.h
310+++ b/src/connection-editor/page-mobile.h
311@@ -58,6 +58,7 @@ void mobile_connection_new (GtkWindow *parent,
312 const char *detail,
313 NMRemoteSettings *settings,
314 PageNewConnectionResultFunc result_func,
315+ NMClient *client,
316 gpointer user_data);
317
318 #endif /* __PAGE_MOBILE_H__ */
319diff --git a/src/connection-editor/page-team.c b/src/connection-editor/page-team.c
320index 9efa43d..786c0fa 100644
321--- a/src/connection-editor/page-team.c
322+++ b/src/connection-editor/page-team.c
323@@ -367,6 +367,7 @@ team_connection_new (GtkWindow *parent,
324 const char *detail,
325 NMRemoteSettings *settings,
326 PageNewConnectionResultFunc result_func,
327+ NMClient *client,
328 gpointer user_data)
329 {
330 NMConnection *connection;
331diff --git a/src/connection-editor/page-team.h b/src/connection-editor/page-team.h
332index d1936b3..91d9df3 100644
333--- a/src/connection-editor/page-team.h
334+++ b/src/connection-editor/page-team.h
335@@ -55,6 +55,7 @@ void team_connection_new (GtkWindow *parent,
336 const char *detail,
337 NMRemoteSettings *settings,
338 PageNewConnectionResultFunc result_func,
339+ NMClient *client,
340 gpointer user_data);
341
342 #endif /* __PAGE_TEAM_H__ */
343diff --git a/src/connection-editor/page-vlan.c b/src/connection-editor/page-vlan.c
344index 1a8c6b6..d41e38a 100644
345--- a/src/connection-editor/page-vlan.c
346+++ b/src/connection-editor/page-vlan.c
347@@ -673,6 +673,7 @@ vlan_connection_new (GtkWindow *parent,
348 const char *detail,
349 NMRemoteSettings *settings,
350 PageNewConnectionResultFunc result_func,
351+ NMClient *client,
352 gpointer user_data)
353 {
354 NMConnection *connection;
355diff --git a/src/connection-editor/page-vlan.h b/src/connection-editor/page-vlan.h
356index 0e66a06..c7969aa 100644
357--- a/src/connection-editor/page-vlan.h
358+++ b/src/connection-editor/page-vlan.h
359@@ -56,6 +56,7 @@ void vlan_connection_new (GtkWindow *parent,
360 const char *detail,
361 NMRemoteSettings *settings,
362 PageNewConnectionResultFunc result_func,
363+ NMClient *client,
364 gpointer user_data);
365
366 #endif /* __PAGE_VLAN_H__ */
367diff --git a/src/connection-editor/page-vpn.c b/src/connection-editor/page-vpn.c
368index 004a260..5c0c8b5 100644
369--- a/src/connection-editor/page-vpn.c
370+++ b/src/connection-editor/page-vpn.c
371@@ -253,6 +253,7 @@ vpn_connection_import (GtkWindow *parent,
372 const char *detail,
373 NMRemoteSettings *settings,
374 PageNewConnectionResultFunc result_func,
375+ NMClient *client,
376 gpointer user_data)
377 {
378 NewVpnInfo *info;
379@@ -287,9 +288,11 @@ vpn_connection_new (GtkWindow *parent,
380 const char *detail,
381 NMRemoteSettings *settings,
382 PageNewConnectionResultFunc result_func,
383+ NMClient *client,
384 gpointer user_data)
385 {
386 NMConnection *connection;
387+ NMSettingConnection *s_con;
388 NMSetting *s_vpn;
389
390 if (!detail) {
391@@ -315,6 +318,14 @@ vpn_connection_new (GtkWindow *parent,
392 FALSE,
393 settings,
394 user_data);
395+
396+ s_con = nm_connection_get_setting_connection (connection);
397+ if (!s_con) {
398+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
399+ nm_connection_add_setting (connection, NM_SETTING (s_con));
400+ }
401+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
402+
403 s_vpn = nm_setting_vpn_new ();
404 g_object_set (s_vpn, NM_SETTING_VPN_SERVICE_TYPE, detail, NULL);
405 nm_connection_add_setting (connection, s_vpn);
406diff --git a/src/connection-editor/page-vpn.h b/src/connection-editor/page-vpn.h
407index 2339732..2164930 100644
408--- a/src/connection-editor/page-vpn.h
409+++ b/src/connection-editor/page-vpn.h
410@@ -60,12 +60,14 @@ void vpn_connection_new (GtkWindow *parent,
411 const char *detail,
412 NMRemoteSettings *settings,
413 PageNewConnectionResultFunc result_func,
414+ NMClient *client,
415 gpointer user_data);
416
417 void vpn_connection_import (GtkWindow *parent,
418 const char *detail,
419 NMRemoteSettings *settings,
420 PageNewConnectionResultFunc result_func,
421+ NMClient *client,
422 gpointer user_data);
423
424 #endif /* __PAGE_VPN_H__ */
425diff --git a/src/connection-editor/page-wifi.c b/src/connection-editor/page-wifi.c
426index 8a25c64..9c56e4b 100644
427--- a/src/connection-editor/page-wifi.c
428+++ b/src/connection-editor/page-wifi.c
429@@ -33,6 +33,8 @@
430 #include <nm-device-wifi.h>
431 #include <nm-utils.h>
432
433+#include "utils.h"
434+
435 #include "page-wifi.h"
436
437 G_DEFINE_TYPE (CEPageWifi, ce_page_wifi, CE_TYPE_PAGE)
438@@ -622,6 +624,7 @@ wifi_connection_new (GtkWindow *parent,
439 const char *detail,
440 NMRemoteSettings *settings,
441 PageNewConnectionResultFunc result_func,
442+ NMClient *client,
443 gpointer user_data)
444 {
445 NMConnection *connection;
446@@ -632,6 +635,17 @@ wifi_connection_new (GtkWindow *parent,
447 TRUE,
448 settings,
449 user_data);
450+
451+ if (utils_default_to_private_connection (client)) {
452+ NMSettingConnection *s_con;
453+ s_con = nm_connection_get_setting_connection (connection);
454+ if (!s_con) {
455+ s_con = (NMSettingConnection *) nm_setting_connection_new ();
456+ nm_connection_add_setting (connection, NM_SETTING (s_con));
457+ }
458+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
459+ }
460+
461 s_wifi = nm_setting_wireless_new ();
462 g_object_set (s_wifi, NM_SETTING_WIRELESS_MODE, "infrastructure", NULL);
463 nm_connection_add_setting (connection, s_wifi);
464diff --git a/src/connection-editor/page-wifi.h b/src/connection-editor/page-wifi.h
465index c039b00..b89e589 100644
466--- a/src/connection-editor/page-wifi.h
467+++ b/src/connection-editor/page-wifi.h
468@@ -62,6 +62,7 @@ void wifi_connection_new (GtkWindow *parent,
469 const char *detail,
470 NMRemoteSettings *settings,
471 PageNewConnectionResultFunc result_func,
472+ NMClient *client,
473 gpointer user_data);
474
475 #endif /* __PAGE_WIFI_H__ */
476diff --git a/src/connection-editor/page-wimax.c b/src/connection-editor/page-wimax.c
477index 97c4d90..d8cf40c 100644
478--- a/src/connection-editor/page-wimax.c
479+++ b/src/connection-editor/page-wimax.c
480@@ -216,6 +216,7 @@ wimax_connection_new (GtkWindow *parent,
481 const char *detail,
482 NMRemoteSettings *settings,
483 PageNewConnectionResultFunc result_func,
484+ NMClient *client,
485 gpointer user_data)
486 {
487 NMConnection *connection;
488diff --git a/src/connection-editor/page-wimax.h b/src/connection-editor/page-wimax.h
489index 6938284..91d937c 100644
490--- a/src/connection-editor/page-wimax.h
491+++ b/src/connection-editor/page-wimax.h
492@@ -56,6 +56,7 @@ void wimax_connection_new (GtkWindow *parent,
493 const char *detail,
494 NMRemoteSettings *settings,
495 PageNewConnectionResultFunc result_func,
496+ NMClient *client,
497 gpointer user_data);
498
499 #endif /* __PAGE_WIMAX_H__ */
500diff --git a/src/gnome-bluetooth/nma-bt-device.c b/src/gnome-bluetooth/nma-bt-device.c
501index 870d2be..cd4103d 100644
502--- a/src/gnome-bluetooth/nma-bt-device.c
503+++ b/src/gnome-bluetooth/nma-bt-device.c
504@@ -342,6 +342,7 @@ dun_new_cdma (NMAMobileWizardAccessMethod *method)
505 NM_SETTING_CDMA_NUMBER, "#777",
506 NM_SETTING_CDMA_USERNAME, method->username,
507 NM_SETTING_CDMA_PASSWORD, method->password,
508+ NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
509 NULL);
510 nm_connection_add_setting (connection, setting);
511
512@@ -368,6 +369,7 @@ dun_new_cdma (NMAMobileWizardAccessMethod *method)
513 NULL);
514 g_free (uuid);
515 g_free (id);
516+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
517 nm_connection_add_setting (connection, setting);
518
519 return connection;
520@@ -387,6 +389,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod *method)
521 NM_SETTING_GSM_NUMBER, "*99#",
522 NM_SETTING_GSM_USERNAME, method->username,
523 NM_SETTING_GSM_PASSWORD, method->password,
524+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
525 NM_SETTING_GSM_APN, method->gsm_apn,
526 NULL);
527 nm_connection_add_setting (connection, setting);
528@@ -414,6 +417,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod *method)
529 NULL);
530 g_free (uuid);
531 g_free (id);
532+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
533 nm_connection_add_setting (connection, setting);
534
535 return connection;
536@@ -978,6 +982,7 @@ add_pan_connection (NmaBtDevice *self)
537 NULL);
538 g_free (id);
539 g_free (uuid);
540+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
541 nm_connection_add_setting (connection, setting);
542
543 /* The Bluetooth settings */
544diff --git a/src/libnm-gtk/nm-wifi-dialog.c b/src/libnm-gtk/nm-wifi-dialog.c
545index ace323b..0916557 100644
546--- a/src/libnm-gtk/nm-wifi-dialog.c
547+++ b/src/libnm-gtk/nm-wifi-dialog.c
548@@ -39,6 +39,7 @@
549 #include "wireless-security.h"
550 #include "nm-ui-utils.h"
551 #include "eap-method.h"
552+#include "utils.h"
553
554 G_DEFINE_TYPE (NMAWifiDialog, nma_wifi_dialog, GTK_TYPE_DIALOG)
555
556@@ -1203,6 +1204,9 @@ nma_wifi_dialog_get_connection (NMAWifiDialog *self,
557 NM_SETTING_CONNECTION_UUID, uuid,
558 NULL);
559 g_free (uuid);
560+ if (utils_default_to_private_connection (priv->client)) {
561+ nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL);
562+ }
563 nm_connection_add_setting (connection, (NMSetting *) s_con);
564
565 s_wireless = (NMSettingWireless *) nm_setting_wireless_new ();
566diff --git a/src/mobile-helpers.c b/src/mobile-helpers.c
567index daa422e..903537f 100644
568--- a/src/mobile-helpers.c
569+++ b/src/mobile-helpers.c
570@@ -179,6 +179,7 @@ mobile_wizard_done (NMAMobileWizard *wizard,
571 NM_SETTING_CDMA_NUMBER, "#777",
572 NM_SETTING_CDMA_USERNAME, method->username,
573 NM_SETTING_CDMA_PASSWORD, method->password,
574+ NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
575 NULL);
576 nm_connection_add_setting (connection, setting);
577 } else if (method->devtype == NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS) {
578@@ -189,6 +190,7 @@ mobile_wizard_done (NMAMobileWizard *wizard,
579 NM_SETTING_GSM_USERNAME, method->username,
580 NM_SETTING_GSM_PASSWORD, method->password,
581 NM_SETTING_GSM_APN, method->gsm_apn,
582+ NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED,
583 NULL);
584 nm_connection_add_setting (connection, setting);
585 } else
586@@ -219,6 +221,7 @@ mobile_wizard_done (NMAMobileWizard *wizard,
587 "user", g_get_user_name (), NULL);
588 g_free (uuid);
589 g_free (id);
590+ nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL);
591 nm_connection_add_setting (connection, setting);
592 }
593
594diff --git a/src/utils/utils.c b/src/utils/utils.c
595index 61d6a9e..8d52ef1 100644
596--- a/src/utils/utils.c
597+++ b/src/utils/utils.c
598@@ -286,3 +286,10 @@ utils_filter_editable_on_insert_text (GtkEditable *editable,
599 return count > 0;
600 }
601
602+gboolean
603+utils_default_to_private_connection (NMClient *client)
604+{
605+ NMClientPermissionResult perms;
606+ perms = nm_client_get_permission_result (client, NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM);
607+ return (perms != NM_CLIENT_PERMISSION_RESULT_YES);
608+}
609diff --git a/src/utils/utils.h b/src/utils/utils.h
610index 1abff65..714fe3d 100644
611--- a/src/utils/utils.h
612+++ b/src/utils/utils.h
613@@ -27,6 +27,7 @@
614 #include <gtk/gtk.h>
615 #include <nm-connection.h>
616 #include <nm-device.h>
617+#include <nm-client.h>
618 #include <net/ethernet.h>
619 #include <nm-access-point.h>
620
621@@ -85,6 +86,8 @@ void utils_show_error_dialog (const char *title,
622 gboolean modal,
623 GtkWindow *parent);
624
625+gboolean utils_default_to_private_connection (NMClient *client);
626+
627 #define NMA_ERROR (g_quark_from_static_string ("nma-error-quark"))
628
629 typedef enum {
630diff --git a/src/wireless-security/ws-wep-key.c b/src/wireless-security/ws-wep-key.c
631index 2399ace..147f848 100644
632--- a/src/wireless-security/ws-wep-key.c
633+++ b/src/wireless-security/ws-wep-key.c
634@@ -147,6 +147,7 @@ static void
635 fill_connection (WirelessSecurity *parent, NMConnection *connection)
636 {
637 WirelessSecurityWEPKey *sec = (WirelessSecurityWEPKey *) parent;
638+ NMSettingConnection *s_con;
639 NMSettingWirelessSecurity *s_wsec;
640 NMSettingSecretFlags secret_flags;
641 GtkWidget *widget, *passwd_entry;
642@@ -173,6 +174,12 @@ fill_connection (WirelessSecurity *parent, NMConnection *connection)
643 NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, sec->type,
644 NULL);
645
646+ s_con = nm_connection_get_setting_connection (connection);
647+
648+ /* If the connection is user-owned, mark the secrets as agent-owned */
649+ if (s_con && nm_setting_connection_get_num_permissions (s_con))
650+ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
651+
652 for (i = 0; i < 4; i++) {
653 if (strlen (sec->keys[i]))
654 nm_setting_wireless_security_set_wep_key (s_wsec, i, sec->keys[i]);
655diff --git a/src/wireless-security/ws-wpa-psk.c b/src/wireless-security/ws-wpa-psk.c
656index 5cd658a..f6eaa27 100644
657--- a/src/wireless-security/ws-wpa-psk.c
658+++ b/src/wireless-security/ws-wpa-psk.c
659@@ -97,12 +97,14 @@ fill_connection (WirelessSecurity *parent, NMConnection *connection)
660 WirelessSecurityWPAPSK *wpa_psk = (WirelessSecurityWPAPSK *) parent;
661 GtkWidget *widget, *passwd_entry;
662 const char *key;
663+ NMSettingConnection *s_con;
664 NMSettingWireless *s_wireless;
665 NMSettingWirelessSecurity *s_wireless_sec;
666 NMSettingSecretFlags secret_flags;
667 const char *mode;
668 gboolean is_adhoc = FALSE;
669
670+ s_con = nm_connection_get_setting_connection (connection);
671 s_wireless = nm_connection_get_setting_wireless (connection);
672 g_assert (s_wireless);
673
674@@ -118,6 +120,9 @@ fill_connection (WirelessSecurity *parent, NMConnection *connection)
675 passwd_entry = widget;
676 key = gtk_entry_get_text (GTK_ENTRY (widget));
677 g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK, key, NULL);
678+ /* If the connection is user-owned, mark the secrets as agent-owned */
679+ if (s_con && nm_setting_connection_get_num_permissions (s_con))
680+ g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
681
682 /* Save PSK_FLAGS to the connection */
683 secret_flags = nma_utils_menu_to_secret_flags (passwd_entry);
0684
=== added file 'debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch'
--- debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch 2015-12-02 15:57:13 +0000
@@ -0,0 +1,35 @@
1From: Michael Biebl <biebl@debian.org>
2Date: Tue, 1 Apr 2014 15:53:35 +0200
3Subject: Don't hard-code gnome-bluetooth plugin directory
4
5---
6 configure.ac | 2 ++
7 src/gnome-bluetooth/Makefile.am | 2 +-
8 2 files changed, 3 insertions(+), 1 deletion(-)
9
10diff --git a/configure.ac b/configure.ac
11index 266bff6..9482a69 100644
12--- a/configure.ac
13+++ b/configure.ac
14@@ -146,6 +146,8 @@ case "${with_bluetooth}" in
15 gnome-bluetooth-1.0 < 3.11.0
16 libnm-util libnm-glib,
17 have_gbt=yes, have_gbt=no)
18+ GNOME_BLUETOOTH_PLUGIN_DIR="`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0`/gnome-bluetooth/plugins"
19+ AC_SUBST(GNOME_BLUETOOTH_PLUGIN_DIR)
20 ;;
21 esac
22
23diff --git a/src/gnome-bluetooth/Makefile.am b/src/gnome-bluetooth/Makefile.am
24index 940aeba..2649d2e 100644
25--- a/src/gnome-bluetooth/Makefile.am
26+++ b/src/gnome-bluetooth/Makefile.am
27@@ -16,7 +16,7 @@ BT_WIDGET_SOURCES = \
28 nma-bt-device.h
29
30 if HAVE_GBT
31-plugindir = $(libdir)/gnome-bluetooth/plugins
32+plugindir = $(GNOME_BLUETOOTH_PLUGIN_DIR)
33
34 plugin_LTLIBRARIES = libnma.la
35
036
=== added file 'debian/patches/Force-online-state-with-unmanaged-devices.patch'
--- debian/patches/Force-online-state-with-unmanaged-devices.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/Force-online-state-with-unmanaged-devices.patch 2015-12-02 15:57:13 +0000
@@ -0,0 +1,28 @@
1From: Michael Biebl <biebl@debian.org>
2Date: Tue, 18 Mar 2014 10:49:13 +0100
3Subject: Force online state with unmanaged devices
4
5If NM has an active unmanaged device it will forcefully set the online
6state to CONNECTED_GLOBAL. In that case show a wired connection icon
7instead of an offline icon.
8
9Closes: #471191
10---
11 src/applet.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/src/applet.c b/src/applet.c
15index 39ea8e4..0a1043b 100644
16--- a/src/applet.c
17+++ b/src/applet.c
18@@ -2952,6 +2952,10 @@ applet_update_icon (gpointer user_data)
19 break;
20 default:
21 applet_get_device_icon_for_state (applet, &pixbuf, &icon_name, &dev_tip);
22+ if (!pixbuf && state == NM_STATE_CONNECTED) {
23+ icon_name = g_strdup ("nm-device-wired");
24+ pixbuf = g_object_ref (nma_icon_check_and_load (icon_name, applet));
25+ }
26 break;
27 }
28
029
=== modified file 'debian/patches/nm-applet-use-indicator.patch'
--- debian/patches/nm-applet-use-indicator.patch 2015-10-07 09:06:59 +0000
+++ debian/patches/nm-applet-use-indicator.patch 2015-12-02 15:57:13 +0000
@@ -100,17 +100,17 @@
100 info->modem_enabled,100 info->modem_enabled,
101 applet);101 applet);
102+#else102+#else
103+ text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con),103+ text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con),
104+ info->provider_name,104+ info->provider_name,
105+ cdma_act_to_mb_act (info),105+ cdma_act_to_mb_act (info),
106+ cdma_state_to_mb_state (info));106+ cdma_state_to_mb_state (info));
107+ item = gtk_image_menu_item_new_with_label (text);107+ item = gtk_image_menu_item_new_with_label (text);
108+ g_free (text);108+ g_free (text);
109+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?109+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?
110+ info->quality : 0);110+ info->quality : 0);
111+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);111+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
112+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);112+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);
113+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);113+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
114+#endif114+#endif
115 gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE);115 gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE);
116 add_connection_item (device, active, item, menu, applet);116 add_connection_item (device, active, item, menu, applet);
@@ -128,17 +128,17 @@
128 info->modem_enabled,128 info->modem_enabled,
129 applet);129 applet);
130+#else130+#else
131+ text = mobile_helper_get_connection_label (NULL,131+ text = mobile_helper_get_connection_label (NULL,
132+ info->provider_name,132+ info->provider_name,
133+ cdma_act_to_mb_act (info),133+ cdma_act_to_mb_act (info),
134+ cdma_state_to_mb_state (info));134+ cdma_state_to_mb_state (info));
135+ item = gtk_image_menu_item_new_with_label (text);135+ item = gtk_image_menu_item_new_with_label (text);
136+ g_free (text);136+ g_free (text);
137+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?137+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?
138+ info->quality : 0);138+ info->quality : 0);
139+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);139+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
140+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);140+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);
141+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);141+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
142+#endif142+#endif
143 gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);143 gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
144 gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);144 gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -201,17 +201,17 @@
201 info->modem_enabled,201 info->modem_enabled,
202 applet);202 applet);
203+#else203+#else
204+ text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con),204+ text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con),
205+ info->op_name,205+ info->op_name,
206+ gsm_act_to_mb_act (info),206+ gsm_act_to_mb_act (info),
207+ gsm_state_to_mb_state (info));207+ gsm_state_to_mb_state (info));
208+ item = gtk_image_menu_item_new_with_label (text);208+ item = gtk_image_menu_item_new_with_label (text);
209+ g_free (text);209+ g_free (text);
210+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?210+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?
211+ info->quality : 0);211+ info->quality : 0);
212+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);212+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
213+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);213+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);
214+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);214+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
215+#endif215+#endif
216 gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE);216 gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE);
217 add_connection_item (device, active, item, menu, applet);217 add_connection_item (device, active, item, menu, applet);
@@ -229,18 +229,18 @@
229 info->modem_enabled,229 info->modem_enabled,
230 applet);230 applet);
231+#else231+#else
232+ text = mobile_helper_get_connection_label (NULL,232+ text = mobile_helper_get_connection_label (NULL,
233+ info->op_name,233+ info->op_name,
234+ gsm_act_to_mb_act (info),234+ gsm_act_to_mb_act (info),
235+ gsm_state_to_mb_state (info));235+ gsm_state_to_mb_state (info));
236+ item = gtk_image_menu_item_new_with_label (text);236+ item = gtk_image_menu_item_new_with_label (text);
237+ g_free (text);237+ g_free (text);
238+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?238+ icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ?
239+ info->quality : 0);239+ info->quality : 0);
240+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);240+ signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
241+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);241+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon);
242+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);242+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
243+ gtk_widget_set_sensitive (item, FALSE);243+ gtk_widget_set_sensitive (item, FALSE);
244+#endif244+#endif
245+245+
246 gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);246 gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
@@ -284,14 +284,14 @@
284+static gboolean284+static gboolean
285+get_ap_is_encrypted (NMAccessPoint *ap)285+get_ap_is_encrypted (NMAccessPoint *ap)
286+{286+{
287+ guint32 ap_flags, ap_wpa, ap_rsn;287+ guint32 ap_flags, ap_wpa, ap_rsn;
288+288+
289+ ap_flags = nm_access_point_get_flags (ap);289+ ap_flags = nm_access_point_get_flags (ap);
290+ ap_wpa = nm_access_point_get_wpa_flags (ap);290+ ap_wpa = nm_access_point_get_wpa_flags (ap);
291+ ap_rsn = nm_access_point_get_rsn_flags (ap);291+ ap_rsn = nm_access_point_get_rsn_flags (ap);
292+292+
293+ if ((ap_flags & NM_802_11_AP_FLAGS_PRIVACY) || ap_wpa || ap_rsn)293+ if ((ap_flags & NM_802_11_AP_FLAGS_PRIVACY) || ap_wpa || ap_rsn)
294+ return TRUE;294+ return TRUE;
295+295+
296+ return FALSE;296+ return FALSE;
297+}297+}
@@ -300,11 +300,11 @@
300+ap_menu_item_set_sensitive (GtkWidget *item, NMAccessPoint *ap, guint32 dev_caps)300+ap_menu_item_set_sensitive (GtkWidget *item, NMAccessPoint *ap, guint32 dev_caps)
301+{301+{
302+ gboolean is_adhoc = FALSE;302+ gboolean is_adhoc = FALSE;
303+ guint32 ap_flags, ap_wpa, ap_rsn;303+ guint32 ap_flags, ap_wpa, ap_rsn;
304+304+
305+ ap_flags = nm_access_point_get_flags (ap);305+ ap_flags = nm_access_point_get_flags (ap);
306+ ap_wpa = nm_access_point_get_wpa_flags (ap);306+ ap_wpa = nm_access_point_get_wpa_flags (ap);
307+ ap_rsn = nm_access_point_get_rsn_flags (ap);307+ ap_rsn = nm_access_point_get_rsn_flags (ap);
308+308+
309+ if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC)309+ if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC)
310+ is_adhoc = TRUE;310+ is_adhoc = TRUE;
@@ -336,18 +336,18 @@
336+336+
337+ icon_name = g_string_new ("");337+ icon_name = g_string_new ("");
338+ if (strength > 80)338+ if (strength > 80)
339+ icon_name = g_string_assign (icon_name, "nm-signal-100");339+ icon_name = g_string_assign (icon_name, "nm-signal-100");
340+ else if (strength > 55)340+ else if (strength > 55)
341+ icon_name = g_string_assign (icon_name, "nm-signal-75");341+ icon_name = g_string_assign (icon_name, "nm-signal-75");
342+ else if (strength > 30)342+ else if (strength > 30)
343+ icon_name = g_string_assign (icon_name, "nm-signal-50");343+ icon_name = g_string_assign (icon_name, "nm-signal-50");
344+ else if (strength > 5)344+ else if (strength > 5)
345+ icon_name = g_string_assign (icon_name, "nm-signal-25");345+ icon_name = g_string_assign (icon_name, "nm-signal-25");
346+ else346+ else
347+ icon_name = g_string_assign (icon_name, "nm-signal-00");347+ icon_name = g_string_assign (icon_name, "nm-signal-00");
348+348+
349+ if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC) {349+ if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC) {
350+ icon_name = g_string_assign (icon_name, "nm-adhoc");350+ icon_name = g_string_assign (icon_name, "nm-adhoc");
351+ goto out;351+ goto out;
352+ }352+ }
353+353+
@@ -363,8 +363,8 @@
363+363+
364+static void364+static void
365+set_menu_item_accessible_desc (NMAccessPoint *ap,365+set_menu_item_accessible_desc (NMAccessPoint *ap,
366+ GtkMenuItem *item,366+ GtkMenuItem *item,
367+ gboolean is_encrypted)367+ gboolean is_encrypted)
368+{368+{
369+ guint32 strength;369+ guint32 strength;
370+ gchar *ssid = NULL;370+ gchar *ssid = NULL;
@@ -542,8 +542,8 @@
542 g_return_val_if_fail (dup_data.hash != NULL, NULL);542 g_return_val_if_fail (dup_data.hash != NULL, NULL);
543+#else543+#else
544+ /* heh, not much choice here, otherwise on startup we get tons of errors544+ /* heh, not much choice here, otherwise on startup we get tons of errors
545+ * because g_return_val_if_fail prints assertion errors.545+ * because g_return_val_if_fail prints assertion errors.
546+ */546+ */
547+ if (dup_data.hash == NULL)547+ if (dup_data.hash == NULL)
548+ return NULL;548+ return NULL;
549+#endif549+#endif
@@ -1083,7 +1083,6 @@
1083+1083+
1084+ return FALSE;1084+ return FALSE;
1085+}1085+}
1086+#endif
1087+1086+
1088+void1087+void
1089+applet_schedule_update_menu (NMApplet *applet)1088+applet_schedule_update_menu (NMApplet *applet)
@@ -1091,6 +1090,7 @@
1091+ if (!applet->update_menu_id)1090+ if (!applet->update_menu_id)
1092+ applet->update_menu_id = g_idle_add (applet_update_indicator_menu, applet);1091+ applet->update_menu_id = g_idle_add (applet_update_indicator_menu, applet);
1093+}1092+}
1093+#endif /* ENABLE_INDICATOR */
1094+1094+
1095 typedef struct {1095 typedef struct {
1096 NMApplet *applet;1096 NMApplet *applet;
@@ -1139,7 +1139,7 @@
1139+1139+
1140+#ifdef ENABLE_INDICATOR1140+#ifdef ENABLE_INDICATOR
1141+ if (icon_name == NULL && layer == ICON_LAYER_LINK) {1141+ if (icon_name == NULL && layer == ICON_LAYER_LINK) {
1142+ icon_name = g_strdup ("nm-no-connection");1142+ icon_name = "nm-no-connection";
1143+ }1143+ }
1144+1144+
1145+ if (icon_name != NULL &&1145+ if (icon_name != NULL &&
@@ -1255,7 +1255,7 @@
1255 }1255 }
1256 1256
1257- foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name);1257- foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name);
1258+ foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name, dev_tip);1258+ foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name, g_strdup (dev_tip));
1259 if (pixbuf)1259 if (pixbuf)
1260 g_object_unref (pixbuf);1260 g_object_unref (pixbuf);
1261 if (icon_name)1261 if (icon_name)
@@ -1276,7 +1276,7 @@
1276 }1276 }
1277 }1277 }
1278- foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name);1278- foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name);
1279+ foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name, dev_tip);1279+ foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name, g_strdup (dev_tip));
1280 if (icon_name)1280 if (icon_name)
1281 g_free (icon_name);1281 g_free (icon_name);
1282 1282
@@ -1377,7 +1377,7 @@
1377 if (!applet->status_icon)1377 if (!applet->status_icon)
1378 return FALSE;1378 return FALSE;
1379 if (shell_debug)1379 if (shell_debug)
1380@@ -3602,11 +3873,34 @@ setup_widgets (NMApplet *applet)1380@@ -3602,13 +3873,36 @@ setup_widgets (NMApplet *applet)
1381 g_signal_connect (applet->status_icon, "popup-menu",1381 g_signal_connect (applet->status_icon, "popup-menu",
1382 G_CALLBACK (status_icon_popup_menu_cb), applet);1382 G_CALLBACK (status_icon_popup_menu_cb), applet);
1383 1383
@@ -1390,10 +1390,9 @@
1390+ if (!applet->context_menu)1390+ if (!applet->context_menu)
1391+ return FALSE;1391+ return FALSE;
1392 1392
1393- return TRUE;1393 return TRUE;
1394+ return TRUE;1394 }
1395+}1395
1396+
1397+static gboolean1396+static gboolean
1398+setup_widgets (NMApplet *applet)1397+setup_widgets (NMApplet *applet)
1399+{1398+{
@@ -1413,9 +1412,11 @@
1413+#else1412+#else
1414+ return success || indicator_success;1413+ return success || indicator_success;
1415+#endif1414+#endif
1416 }1415+}
1417 1416+
1418 static void1417 static void
1418 applet_embedded_cb (GObject *object, GParamSpec *pspec, gpointer user_data)
1419 {
1419@@ -3697,6 +3991,8 @@ initable_init (GInitable *initable, GCan1420@@ -3697,6 +3991,8 @@ initable_init (GInitable *initable, GCan
1420 G_CALLBACK (applet_gsettings_show_changed), applet);1421 G_CALLBACK (applet_gsettings_show_changed), applet);
1421 1422
14221423
=== modified file 'debian/patches/series'
--- debian/patches/series 2015-10-07 03:56:07 +0000
+++ debian/patches/series 2015-12-02 15:57:13 +0000
@@ -1,3 +1,6 @@
1Allow-to-create-connections-without-admin-privileges.patch
2Force-online-state-with-unmanaged-devices.patch
3Don-t-hard-code-gnome-bluetooth-plugin-directory.patch
1lp341684_device_sensitive_disconnect_notify.patch4lp341684_device_sensitive_disconnect_notify.patch
2lp460144_correctly_update_notification.patch5lp460144_correctly_update_notification.patch
3applet-wifi-menu-before-vpn.patch6applet-wifi-menu-before-vpn.patch
@@ -9,6 +12,5 @@
9lp1048516_dont_req_keyring_in_greeter.patch12lp1048516_dont_req_keyring_in_greeter.patch
10lp1048520_delay_pin_dialog_in_greeter.patch13lp1048520_delay_pin_dialog_in_greeter.patch
11rebuild_menu_after_init.patch14rebuild_menu_after_init.patch
1211-user-connections.patch
13ubuntu_dont_autostart_under_GNOME.patch15ubuntu_dont_autostart_under_GNOME.patch
14hide_virtual_devices.patch16hide_virtual_devices.patch
1517
=== modified file 'debian/rules'
--- debian/rules 2015-01-27 01:15:32 +0000
+++ debian/rules 2015-12-02 15:57:13 +0000
@@ -13,18 +13,16 @@
13 --disable-more-warnings \13 --disable-more-warnings \
14 --enable-migration \14 --enable-migration \
15 --enable-introspection \15 --enable-introspection \
16 --with-modem-manager-1=yes \16 --with-modem-manager-1 \
17 --enable-indicator \17 --enable-indicator
1818
19override_dh_auto_clean:19override_dh_auto_clean:
20 dh_auto_clean20 dh_auto_clean
21 rm -f icons/22/*-secure.png icons/22/nm-active-device.png21 rm -f icons/22/*-secure.png icons/22/nm-active-device.png
22 rm -f debian/*.1
2322
24override_dh_auto_build:23override_dh_auto_build:
25 dh_auto_build24 dh_auto_build
26 cp -rf $(CURDIR)/debian/icons/22 icons/25 cp -rf $(CURDIR)/debian/icons/22 icons/
27 docbook-to-man debian/nm-applet.sgml > debian/nm-applet.1
2826
29override_dh_install:27override_dh_install:
30 dh_install -X.la -X.a --fail-missing28 dh_install -X.la -X.a --fail-missing

Subscribers

People subscribed via source and target branches