Merge lp:~mitya57/network-manager-applet/lp1440009 into lp:~network-manager/network-manager-applet/ubuntu

Proposed by Dmitry Shachnev
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 454
Merged at revision: 454
Proposed branch: lp:~mitya57/network-manager-applet/lp1440009
Merge into: lp:~network-manager/network-manager-applet/ubuntu
Diff against target: 74 lines (+54/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/lp1440009_flashback.patch (+47/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~mitya57/network-manager-applet/lp1440009
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Network-manager Pending
Review via email: mp+255224@code.launchpad.net

Description of the change

We would like to have this patch in network-manager-applet *only for Vivid*. Please see LP: #1440009 for details.

As Alberts points out in that bug, the next version of gnome-flashback will set ShellVersion, which will make network-manager-applet think that the desktop is just old version of gnome-shell and behave correctly.

To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Full ack, looks fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-04-01 21:30:38 +0000
3+++ debian/changelog 2015-04-04 09:40:36 +0000
4@@ -1,3 +1,9 @@
5+network-manager-applet (0.9.10.1-0ubuntu3) UNRELEASED; urgency=medium
6+
7+ * Do not misdetect GNOME Flashback as GNOME Shell (LP: #1440009).
8+
9+ -- Dmitry Shachnev <mitya57@ubuntu.com> Fri, 03 Apr 2015 15:04:29 +0300
10+
11 network-manager-applet (0.9.10.1-0ubuntu2) vivid; urgency=medium
12
13 * debian/patches/nm-applet-use-indicator.patch: initialize GSList dupes var
14
15=== added file 'debian/patches/lp1440009_flashback.patch'
16--- debian/patches/lp1440009_flashback.patch 1970-01-01 00:00:00 +0000
17+++ debian/patches/lp1440009_flashback.patch 2015-04-04 09:40:36 +0000
18@@ -0,0 +1,47 @@
19+Description: do not unregister the agent under GNOME Flashback
20+ GNOME Flashback owns the org.gnome.Shell name, but does not (currently)
21+ export ShellVersion, which is causing problems in nm-applet.
22+Author: Dmitry Shachnev <mitya57@ubuntu.com>
23+Forwarded: not-needed
24+Last-Update: 2015-04-03
25+
26+--- a/src/applet.c
27++++ b/src/applet.c
28+@@ -4113,6 +4113,28 @@
29+ gtk_status_icon_set_visible (applet->status_icon, applet->visible);
30+ }
31+
32++static gboolean is_gnome_flashback ()
33++{
34++ const gchar *xdg_current_desktop;
35++ gchar **desktop_names;
36++ int i;
37++ gboolean result;
38++
39++ result = FALSE;
40++ xdg_current_desktop = g_getenv ("XDG_CURRENT_DESKTOP");
41++ if (xdg_current_desktop != NULL) {
42++ desktop_names = g_strsplit (xdg_current_desktop, ":", 0);
43++ for (i = 0; desktop_names[i]; ++i) {
44++ if (!g_strcmp0 (desktop_names[i], "GNOME-Flashback")) {
45++ result = TRUE;
46++ break;
47++ }
48++ }
49++ g_strfreev (desktop_names);
50++ }
51++ return result;
52++}
53++
54+ static gboolean
55+ initable_init (GInitable *initable, GCancellable *cancellable, GError **error)
56+ {
57+@@ -4221,7 +4243,7 @@
58+ applet_embedded_cb (G_OBJECT (applet->status_icon), NULL, NULL);
59+
60+ /* Watch GNOME Shell so we can unregister our applet agent if it appears */
61+- if (!shell_debug) {
62++ if (!shell_debug && !is_gnome_flashback ()) {
63+ applet->shell_watcher = nm_shell_watcher_new ();
64+ g_signal_connect (applet->shell_watcher,
65+ "notify::shell-version",
66
67=== modified file 'debian/patches/series'
68--- debian/patches/series 2015-04-01 20:59:33 +0000
69+++ debian/patches/series 2015-04-04 09:40:36 +0000
70@@ -14,3 +14,4 @@
71 11-user-connections.patch
72 ubuntu_dont_autostart_under_GNOME.patch
73 hide_virtual_devices.patch
74+lp1440009_flashback.patch

Subscribers

People subscribed via source and target branches