~ubuntu-branches/ubuntu/raring/lightdm/raring-security

« back to all changes in this revision

Viewing changes to debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2012-10-09 10:26:43 UTC
  • Revision ID: package-import@ubuntu.com-20121009102643-cem5k2ohcqb2o5n1
Tags: 1.4.0-0ubuntu2
* debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch:
  - Fix 2d->3d transition to handle new support for accountsservice
    LP: #1059137

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
=== modified file 'liblightdm-gobject/user.c'
5
5
Index: lightdm/liblightdm-gobject/user.c
6
6
===================================================================
7
 
--- lightdm.orig/liblightdm-gobject/user.c      2012-06-21 11:47:32.575536000 +1200
8
 
+++ lightdm/liblightdm-gobject/user.c   2012-06-21 11:49:07.598538140 +1200
9
 
@@ -1159,6 +1159,12 @@
10
 
     if (priv->session)
11
 
         g_free (priv->session);
12
 
     priv->session = g_key_file_get_string (priv->dmrc_file, "Desktop", "Session", NULL);
13
 
+
 
7
--- lightdm.orig/liblightdm-gobject/user.c      2012-10-08 09:22:00.499038253 -0400
 
8
+++ lightdm/liblightdm-gobject/user.c   2012-10-09 10:26:25.721700862 -0400
 
9
@@ -1314,6 +1314,12 @@
 
10
     load_dmrc (user);
 
11
     load_accounts_service (user); // overrides dmrc values
 
12
 
14
13
+    if (g_strcmp0 (priv->session, "ubuntu-2d") == 0)
15
14
+    {
16
15
+        g_free(priv->session);
17
16
+        priv->session = g_strdup ("ubuntu");
18
17
+    }
19
 
 }
20
 
 
21
 
 static GVariant *
 
18
+
 
19
     /* Ensure a few guarantees */
 
20
     if (priv->layouts == NULL)
 
21
     {