Accepting request 21574 from home:vuntz:branches:GNOME:Factory
Copy from home:vuntz:branches:GNOME:Factory/gdm via accept of submit request 21574 revision 2. OBS-URL: https://build.opensuse.org/request/show/21574 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gdm?expand=0&rev=100
This commit is contained in:
committed by
Git OBS Bridge
parent
f8d666b509
commit
bb288c5b4f
52
gdm-autologin-once.patch
Normal file
52
gdm-autologin-once.patch
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
diff --git a/daemon/gdm-static-display.c b/daemon/gdm-static-display.c
|
||||||
|
index a747ee3..9605f5a 100644
|
||||||
|
--- a/daemon/gdm-static-display.c
|
||||||
|
+++ b/daemon/gdm-static-display.c
|
||||||
|
@@ -45,7 +45,7 @@
|
||||||
|
|
||||||
|
struct GdmStaticDisplayPrivate
|
||||||
|
{
|
||||||
|
- gboolean enable_timed_login;
|
||||||
|
+ gboolean first_login;
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
@@ -121,6 +121,8 @@ gdm_static_display_unmanage (GdmDisplay *display)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE);
|
||||||
|
|
||||||
|
+ GDM_STATIC_DISPLAY (display)->priv->first_login = FALSE;
|
||||||
|
+
|
||||||
|
GDM_DISPLAY_CLASS (gdm_static_display_parent_class)->unmanage (display);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
@@ -158,12 +160,14 @@ gdm_static_display_get_timed_login_details (GdmDisplay *display,
|
||||||
|
char **usernamep,
|
||||||
|
int *delayp)
|
||||||
|
{
|
||||||
|
- if (GDM_STATIC_DISPLAY (display)->priv->enable_timed_login) {
|
||||||
|
- GDM_DISPLAY_CLASS (gdm_static_display_parent_class)->get_timed_login_details (display, enabledp, usernamep, delayp);
|
||||||
|
- } else {
|
||||||
|
- *enabledp = FALSE;
|
||||||
|
- *usernamep = g_strdup ("");
|
||||||
|
- *delayp = 0;
|
||||||
|
+ GDM_DISPLAY_CLASS (gdm_static_display_parent_class)->get_timed_login_details (display, enabledp, usernamep, delayp);
|
||||||
|
+
|
||||||
|
+ if (!GDM_STATIC_DISPLAY (display)->priv->first_login) {
|
||||||
|
+ /* if this is autologin but not timed login, then disable
|
||||||
|
+ * autologin after the first one */
|
||||||
|
+ if (*enabledp && *delayp == 0) {
|
||||||
|
+ *enabledp = FALSE;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -196,7 +200,7 @@ gdm_static_display_init (GdmStaticDisplay *static_display)
|
||||||
|
|
||||||
|
static_display->priv = GDM_STATIC_DISPLAY_GET_PRIVATE (static_display);
|
||||||
|
|
||||||
|
- static_display->priv->enable_timed_login = TRUE;
|
||||||
|
+ static_display->priv->first_login = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 2 00:47:14 CEST 2009 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Add gdm-autologin-once.patch: we don't want to autologin again
|
||||||
|
after a logout. Fix bnc#532090.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 28 14:59:45 CEST 2009 - vuntz@opensuse.org
|
Mon Sep 28 14:59:45 CEST 2009 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
3
gdm.spec
3
gdm.spec
@@ -84,6 +84,8 @@ Patch34: gdm-default-wm.patch
|
|||||||
Patch35: gdm-xauthlocalhostname.patch
|
Patch35: gdm-xauthlocalhostname.patch
|
||||||
# PATCH-FIX-UPSTREAM gdm-build-fixes.patch bgo596605 vuntz@novell.com -- Add missing return value
|
# PATCH-FIX-UPSTREAM gdm-build-fixes.patch bgo596605 vuntz@novell.com -- Add missing return value
|
||||||
Patch36: gdm-build-fixes.patch
|
Patch36: gdm-build-fixes.patch
|
||||||
|
# PATCH-FIX-UPSTREAM gdm-autologin-once.patch bgo587606 vuntz@novell.com -- Make autologin work only once
|
||||||
|
Patch37: gdm-autologin-once.patch
|
||||||
# PATCH-FIX-OPENSUSE gdm-selinux.patch -- Small changes to make it compile fine with SELinux
|
# PATCH-FIX-OPENSUSE gdm-selinux.patch -- Small changes to make it compile fine with SELinux
|
||||||
Patch60: gdm-selinux.patch
|
Patch60: gdm-selinux.patch
|
||||||
Url: http://www.gnome.org/
|
Url: http://www.gnome.org/
|
||||||
@@ -155,6 +157,7 @@ gnome-patch-translation-prepare
|
|||||||
%patch34 -p1
|
%patch34 -p1
|
||||||
%patch35 -p1
|
%patch35 -p1
|
||||||
%patch36 -p1
|
%patch36 -p1
|
||||||
|
%patch37 -p1
|
||||||
%patch60
|
%patch60
|
||||||
# gnome-patch-translation-update
|
# gnome-patch-translation-update
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user