patches/gdm-18-xdmcp-seatid.diff
author yippi
Mon, 12 Jul 2010 15:28:13 +0000
branchgnome-2-30
changeset 18350 282594b54196
permissions -rw-r--r--
2010-07-12 Brian Cameron <[email protected]> * specs/SUNWlibcanberra.spec: Fix doo #16421, a bug which prevents GTK+ 64-bit programs from starting when libcanberra event sounds are on. * specs/SUNWxscreensaver.spec, patches/xscreensaver-27-bug-6964562.diff: Fixes bug CR 6964562 which caused xscreensaver dumps core whenever it unlocks in snv-142s * specs/SUNWgnome-display-mgr.spec, base-specs/gdm.spec: Update to 2.30.4. This fixes CR #6958774 * patches/gdm-01-dynamic-display.diff: Rework. * patches/gdm-12-fixfocus.diff, patches/gdm-19-allusers.diff, patches/gdm-25-pipe.diff: Remove upstream patches and renumber the rest. * ext-sources/svc-gdm: Change to reflect bumping to new version of GDM.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18350
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
commit 5685d65267627038533edd92c2655d0c8023766b
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
Author: Halton Huo <[email protected]>
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
Date:   Mon Apr 19 16:00:07 2010 +0800
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
    gdm-26-xdmcp-seatid.diff, specify seat-id when create a XDMCP greeter display.
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
    
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
    Because ':' is not acceptable as valid dbus names, use g_strcanon to
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
    replace invalid characters into '_'.
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
diff --git a/daemon/gdm-xdmcp-greeter-display.c b/daemon/gdm-xdmcp-greeter-display.c
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
index 2273f4b..6e8c621 100644
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
--- a/daemon/gdm-xdmcp-greeter-display.c
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
+++ b/daemon/gdm-xdmcp-greeter-display.c
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
@@ -104,17 +104,22 @@ gdm_xdmcp_greeter_display_new (const char              *hostname,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
 {
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
         GObject *object;
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
         char    *x11_display;
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
+        char    *seat_id;
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
 
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
         x11_display = g_strdup_printf ("%s:%d", hostname, number);
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
+        seat_id = g_strdup_printf ("/org/freedesktop/ConsoleKit/XDMCP%s", x11_display);
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
+        seat_id = g_strcanon (seat_id, "ABCDEFGHIGKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-/", '_');
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
         object = g_object_new (GDM_TYPE_XDMCP_GREETER_DISPLAY,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    24
                                "remote-hostname", hostname,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    25
                                "x11-display-number", number,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    26
                                "x11-display-name", x11_display,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    27
+                               "seat-id", seat_id,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    28
                                "is-local", FALSE,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    29
                                "remote-address", address,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    30
                                "session-number", session_number,
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    31
                                NULL);
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    32
         g_free (x11_display);
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    33
+        g_free (seat_id);
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    34
 
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    35
         return GDM_DISPLAY (object);
282594b54196 2010-07-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    36
 }