summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README17
-rw-r--r--mate-session/gsm-manager.c30
2 files changed, 33 insertions, 14 deletions
diff --git a/README b/README
index b8af5f3..9637d95 100644
--- a/README
+++ b/README
@@ -6,12 +6,11 @@ configuration program to choose applications starting on login.
You may download updates to the package from:
- http://download.gnome.org/sources/mate-session/
+ http://pub.mate-desktop.org/releases/
-To discuss mate-session, you may use the desktop-devel-list mailing
-list:
+To discuss mate-session, you may use the mate-dev mailing list:
- http://mail.gnome.org/mailman/listinfo/desktop-devel-list
+ http://ml.mate-desktop.org/listinfo/mate-dev
Design notes
@@ -31,15 +30,9 @@ first need to run './autogen.sh'.
How to report bugs
==================
-Bugs should be reported to the MATE bug tracking system:
+Bugs should be reported to mate-session's Github issue tracker:
- https://bugzilla.gnome.org/ (product mate-session)
-
-You will need to create an account for yourself.
-
-Please read the following page on how to prepare a useful bug report:
-
- https://bugzilla.gnome.org/page.cgi?id=bug-writing.html
+ https://github.com/mate-desktop/mate-session-manager/issues?state=open
Please read the HACKING file for information on where to send changes or
bugfixes for this package.
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 8b2e024..ad4ed89 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -137,6 +137,7 @@ struct GsmManagerPrivate
GSettings *settings_session;
GSettings *settings_lockdown;
+ GSettings *settings_screensaver;
DBusGProxy *bus_proxy;
DBusGConnection *connection;
@@ -967,8 +968,11 @@ manager_switch_user (GsmManager *manager)
static gboolean
sleep_lock_is_enabled (GsmManager *manager)
{
- return g_settings_get_boolean (manager->priv->settings_lockdown,
- KEY_SLEEP_LOCK);
+ if (manager->priv->settings_screensaver != NULL)
+ return g_settings_get_boolean (manager->priv->settings_screensaver,
+ KEY_SLEEP_LOCK);
+ else
+ return FALSE;
}
static void
@@ -2178,6 +2182,11 @@ gsm_manager_dispose (GObject *object)
manager->priv->settings_lockdown = NULL;
}
+ if (manager->priv->settings_screensaver) {
+ g_object_unref (manager->priv->settings_screensaver);
+ manager->priv->settings_screensaver = NULL;
+ }
+
if (manager->priv->up_client != NULL) {
g_object_unref (manager->priv->up_client);
manager->priv->up_client = NULL;
@@ -2336,12 +2345,29 @@ on_presence_status_changed (GsmPresence *presence,
static void
gsm_manager_init (GsmManager *manager)
{
+ const char * const *schemas;
+ gboolean schema_exists;
+ guint i;
manager->priv = GSM_MANAGER_GET_PRIVATE (manager);
manager->priv->settings_session = g_settings_new (SESSION_SCHEMA);
manager->priv->settings_lockdown = g_settings_new (LOCKDOWN_SCHEMA);
+ /* check if mate-screensaver is installed */
+ schemas = g_settings_list_schemas ();
+ schema_exists = FALSE;
+ for (i = 0; schemas[i] != NULL; i++) {
+ if (g_str_equal (schemas[i], SCREENSAVER_SCHEMA)) {
+ schema_exists = TRUE;
+ break;
+ }
+ }
+ if (schema_exists == TRUE)
+ manager->priv->settings_screensaver = g_settings_new (SCREENSAVER_SCHEMA);
+ else
+ manager->priv->settings_screensaver = NULL;
+
manager->priv->inhibitors = gsm_store_new ();
g_signal_connect (manager->priv->inhibitors,
"added",