Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhy20120210:home:zhy20120210:SLES-11-SP1-x86-64
gdm
gdm-xdmcp-from-sysconfig-setting.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdm-xdmcp-from-sysconfig-setting.patch of Package gdm
diff --git a/common/gdm-settings-system-backend.c b/common/gdm-settings-system-backend.c index 9f6dd2d..be013c7 100644 --- a/common/gdm-settings-system-backend.c +++ b/common/gdm-settings-system-backend.c @@ -43,6 +43,7 @@ #define SYSCONFIG_AUTOLOGIN_KEY "DISPLAYMANAGER_AUTOLOGIN" #define SYSCONFIG_LOCAL_XSERVER_KEY "DISPLAYMANAGER_STARTS_XSERVER" +#define SYSCONFIG_XDMCP_ENABLE_KEY "DISPLAYMANAGER_REMOTE_ACCESS" #define GDM_SETTINGS_SYSTEM_BACKEND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GDM_TYPE_SETTINGS_SYSTEM_BACKEND, GdmSettingsSystemBackendPrivate)) @@ -86,7 +87,8 @@ gdm_settings_system_backend_get_value (GdmSettingsBackend *backend, if (strcasecmp (key, GDM_KEY_AUTO_LOGIN_ENABLE) && strcasecmp (key, GDM_KEY_AUTO_LOGIN_USER) && - strcasecmp (key, GDM_KEY_LOCAL_XSERVER_ENABLE)) { + strcasecmp (key, GDM_KEY_LOCAL_XSERVER_ENABLE) && + strcasecmp (key, GDM_KEY_XDMCP_ENABLE)) { g_set_error (error, GDM_SETTINGS_BACKEND_ERROR, GDM_SETTINGS_BACKEND_ERROR_KEY_NOT_FOUND, "Key not found"); goto out; } @@ -102,6 +104,18 @@ gdm_settings_system_backend_get_value (GdmSettingsBackend *backend, if (val) g_free (val); val = g_strdup (new_val); + } else if (!strcasecmp (key, GDM_KEY_XDMCP_ENABLE)) { + const gchar *new_val; + + val = gdm_sysconfig_get_value ((const gchar **) priv->lines, SYSCONFIG_XDMCP_ENABLE_KEY); + + if (val && !strcasecmp (val, "no")) + new_val = "false"; + else + new_val = "true"; + + g_free (val); + val = g_strdup (new_val); } else if (!strcasecmp (key, GDM_KEY_AUTO_LOGIN_ENABLE)) { if (priv->dirty) { val = g_strdup (priv->set_autologin_enabled ? "true" : "false");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor