OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-settings-daemon?expand=0&rev=21
This commit is contained in:
parent
156f78a1c2
commit
18f337eefb
504
gnome-settings-daemon-low-disk-space.patch
Normal file
504
gnome-settings-daemon-low-disk-space.patch
Normal file
@ -0,0 +1,504 @@
|
||||
Index: gnome-settings-daemon-2.24.0/configure.ac
|
||||
===================================================================
|
||||
--- gnome-settings-daemon-2.24.0.orig/configure.ac
|
||||
+++ gnome-settings-daemon-2.24.0/configure.ac
|
||||
@@ -215,6 +215,14 @@ PKG_CHECK_MODULES(LIBGNOMEKBD, [libgnome
|
||||
AC_SUBST(LIBGNOMEKBD_CFLAGS)
|
||||
AC_SUBST(LIBGNOMEKBD_LIBS)
|
||||
|
||||
+dnl ---------------------------------------------------------------------------
|
||||
+dnl - Housekeeping plugin stuff
|
||||
+dnl ---------------------------------------------------------------------------
|
||||
+
|
||||
+PKG_CHECK_MODULES(GIOUNIX, [gio-unix-2.0])
|
||||
+AC_SUBST(GIOUNIX_CFLAGS)
|
||||
+AC_SUBST(GIOUNIX_LIBS)
|
||||
+
|
||||
dnl ==============================================
|
||||
dnl Esd section
|
||||
dnl ==============================================
|
||||
Index: gnome-settings-daemon-2.24.0/plugins/housekeeping/Makefile.am
|
||||
===================================================================
|
||||
--- gnome-settings-daemon-2.24.0.orig/plugins/housekeeping/Makefile.am
|
||||
+++ gnome-settings-daemon-2.24.0/plugins/housekeeping/Makefile.am
|
||||
@@ -13,11 +13,13 @@ libhousekeeping_la_CPPFLAGS = \
|
||||
|
||||
libhousekeeping_la_CFLAGS = \
|
||||
$(SETTINGS_PLUGIN_CFLAGS) \
|
||||
+ $(GIOUNIX_CFLAGS) \
|
||||
+ $(LIBNOTIFY_CFLAGS) \
|
||||
$(AM_CFLAGS)
|
||||
|
||||
libhousekeeping_la_LDFLAGS = $(GSD_PLUGIN_LDFLAGS)
|
||||
|
||||
-libhousekeeping_la_LIBADD = $(SETTINGS_PLUGIN_LIBS)
|
||||
+libhousekeeping_la_LIBADD = $(SETTINGS_PLUGIN_LIBS) $(GIOUNIX_LIBS) $(LIBNOTIFY_LIBS)
|
||||
|
||||
plugin_in_files = housekeeping.gnome-settings-plugin.in
|
||||
|
||||
Index: gnome-settings-daemon-2.24.0/plugins/housekeeping/gsd-disk-space.c
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ gnome-settings-daemon-2.24.0/plugins/housekeeping/gsd-disk-space.c
|
||||
@@ -0,0 +1,373 @@
|
||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||
+ * vim: set et sw=8 ts=8:
|
||||
+ *
|
||||
+ * Copyright (c) 2008, Novell, Inc.
|
||||
+ *
|
||||
+ * Authors: Vincent Untz <vuntz@gnome.org>
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License as published by
|
||||
+ * the Free Software Foundation; either version 2 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ *
|
||||
+ * This program is distributed in the hope that it will be useful,
|
||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ * GNU General Public License for more details.
|
||||
+ *
|
||||
+ * You should have received a copy of the GNU General Public License
|
||||
+ * along with this program; if not, write to the Free Software
|
||||
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+/* gcc -DHAVE_LIBNOTIFY -DTEST -Wall `pkg-config --cflags --libs gobject-2.0 gio-unix-2.0 glib-2.0 gtk+-2.0 libnotify` -o gsd-disk-space-test gsd-disk-space.c */
|
||||
+
|
||||
+#include <sys/statvfs.h>
|
||||
+
|
||||
+#include <glib.h>
|
||||
+#include <glib/gi18n.h>
|
||||
+#include <glib-object.h>
|
||||
+#include <gio/gunixmounts.h>
|
||||
+#include <gtk/gtk.h>
|
||||
+
|
||||
+#ifdef HAVE_LIBNOTIFY
|
||||
+
|
||||
+#include <libnotify/notify.h>
|
||||
+
|
||||
+/*
|
||||
+ * TODO:
|
||||
+ * + gconf to make it possible to customize the define below (?)
|
||||
+ */
|
||||
+
|
||||
+#define FREE_PERCENT_NOTIFY 0.05
|
||||
+#define FREE_PERCENT_NOTIFY_AGAIN 0.01
|
||||
+/* No notification if there's more than 2 GB */
|
||||
+#define FREE_SIZE_GB_NO_NOTIFY 2
|
||||
+#define GIGABYTE 1024 * 1024 * 1024
|
||||
+
|
||||
+#define CHECK_EVERY_X_SECONDS 15
|
||||
+
|
||||
+#define DISK_SPACE_ANALYZER "baobab"
|
||||
+
|
||||
+static GHashTable *ldsm_notified_hash = NULL;
|
||||
+static unsigned int ldsm_timeout_id = 0;
|
||||
+static GUnixMountMonitor *ldsm_monitor = NULL;
|
||||
+
|
||||
+static void
|
||||
+ldsm_hash_free_slice_gdouble (gpointer data)
|
||||
+{
|
||||
+ g_slice_free (gdouble, data);
|
||||
+}
|
||||
+
|
||||
+static char *
|
||||
+ldsm_get_icon_name_from_g_icon (GIcon *gicon)
|
||||
+{
|
||||
+ const char * const *names;
|
||||
+ GtkIconTheme *icon_theme;
|
||||
+ int i;
|
||||
+
|
||||
+ if (!G_IS_THEMED_ICON (gicon))
|
||||
+ return NULL;
|
||||
+
|
||||
+ names = g_themed_icon_get_names (G_THEMED_ICON (gicon));
|
||||
+ icon_theme = gtk_icon_theme_get_default ();
|
||||
+
|
||||
+ for (i = 0; names[i] != NULL; i++) {
|
||||
+ if (gtk_icon_theme_has_icon (icon_theme, names[i]))
|
||||
+ return g_strdup (names[i]);
|
||||
+ }
|
||||
+
|
||||
+ return NULL;
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+ldsm_notification_clicked (NotifyNotification *notification,
|
||||
+ const char *action,
|
||||
+ const char *path)
|
||||
+{
|
||||
+ const char *argv[] = { DISK_SPACE_ANALYZER, path, NULL };
|
||||
+
|
||||
+ if (strcmp (action, "analyze") != 0) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ g_spawn_async (NULL, (char **) argv, NULL, G_SPAWN_SEARCH_PATH,
|
||||
+ NULL, NULL, NULL, NULL);
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+ldsm_notify_for_mount (GUnixMountEntry *mount,
|
||||
+ double free_space,
|
||||
+ gboolean has_disk_analyzer)
|
||||
+{
|
||||
+ char *name;
|
||||
+ char *msg;
|
||||
+ GIcon *gicon;
|
||||
+ char *icon;
|
||||
+ int in_use;
|
||||
+ NotifyNotification *notif;
|
||||
+
|
||||
+ name = g_unix_mount_guess_name (mount);
|
||||
+ in_use = 100 - (free_space * 100);
|
||||
+ msg = g_strdup_printf (_("%d%% of the disk space on `%s' is in use"),
|
||||
+ in_use, name);
|
||||
+ g_free (name);
|
||||
+
|
||||
+ gicon = g_unix_mount_guess_icon (mount);
|
||||
+ icon = ldsm_get_icon_name_from_g_icon (gicon);
|
||||
+ g_object_unref (gicon);
|
||||
+
|
||||
+ notif = notify_notification_new (_("Low Disk Space"), msg, icon, NULL);
|
||||
+ g_free (msg);
|
||||
+ g_free (icon);
|
||||
+
|
||||
+ notify_notification_set_urgency (notif, NOTIFY_URGENCY_CRITICAL);
|
||||
+
|
||||
+ if (FALSE && has_disk_analyzer) {
|
||||
+ const char *path;
|
||||
+
|
||||
+ path = g_unix_mount_get_mount_path (mount);
|
||||
+
|
||||
+ notify_notification_add_action (notif, "analyze", _("Analyze"),
|
||||
+ (NotifyActionCallback) ldsm_notification_clicked,
|
||||
+ g_strdup (path), g_free);
|
||||
+ }
|
||||
+
|
||||
+ notify_notification_show (notif, NULL);
|
||||
+
|
||||
+ g_object_unref (notif);
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+ldsm_check_mount (GUnixMountEntry *mount,
|
||||
+ gboolean has_disk_analyzer)
|
||||
+{
|
||||
+ const char *path;
|
||||
+ struct statvfs buf;
|
||||
+ unsigned long threshold_blocks;
|
||||
+ double free_space;
|
||||
+ double previous_free_space;
|
||||
+ double *previous_free_space_p;
|
||||
+
|
||||
+ path = g_unix_mount_get_mount_path (mount);
|
||||
+
|
||||
+ /* get the old stats we saved for this mount in case we notified */
|
||||
+ previous_free_space_p = g_hash_table_lookup (ldsm_notified_hash, path);
|
||||
+ if (previous_free_space_p != NULL)
|
||||
+ previous_free_space = *previous_free_space_p;
|
||||
+ else
|
||||
+ previous_free_space = 0;
|
||||
+
|
||||
+ if (statvfs (path, &buf) != 0) {
|
||||
+ g_hash_table_remove (ldsm_notified_hash, path);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ /* not a real filesystem, but a virtual one. Skip it */
|
||||
+ if (buf.f_blocks == 0) {
|
||||
+ g_hash_table_remove (ldsm_notified_hash, path);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ free_space = (double) buf.f_bavail / (double) buf.f_blocks;
|
||||
+ /* enough free space, nothing to do */
|
||||
+ if (free_space > FREE_PERCENT_NOTIFY) {
|
||||
+ g_hash_table_remove (ldsm_notified_hash, path);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ /* note that we try to avoid doing an overflow */
|
||||
+ threshold_blocks = FREE_SIZE_GB_NO_NOTIFY * (GIGABYTE / buf.f_bsize);
|
||||
+ /* more than enough space, nothing to do */
|
||||
+ if (buf.f_bavail > threshold_blocks) {
|
||||
+ g_hash_table_remove (ldsm_notified_hash, path);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ /* did we already notify the user? If yes, we only notify if the disk
|
||||
+ * is getting more and more filled */
|
||||
+ if (previous_free_space != 0 &&
|
||||
+ previous_free_space - free_space < FREE_PERCENT_NOTIFY_AGAIN) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ ldsm_notify_for_mount (mount, free_space, has_disk_analyzer);
|
||||
+
|
||||
+ /* replace the information about the latest notification */
|
||||
+ previous_free_space_p = g_slice_new (gdouble);
|
||||
+ *previous_free_space_p = free_space;
|
||||
+ g_hash_table_replace (ldsm_notified_hash,
|
||||
+ g_strdup (path), previous_free_space_p);
|
||||
+}
|
||||
+
|
||||
+static gboolean
|
||||
+ldsm_check_all_mounts (gpointer data)
|
||||
+{
|
||||
+ GList *mounts;
|
||||
+ GList *l;
|
||||
+ GHashTable *seen;
|
||||
+ char *program;
|
||||
+ gboolean has_disk_analyzer;
|
||||
+
|
||||
+ program = g_find_program_in_path (DISK_SPACE_ANALYZER);
|
||||
+ has_disk_analyzer = (program != NULL);
|
||||
+ if (program != NULL) {
|
||||
+ g_free (program);
|
||||
+ }
|
||||
+
|
||||
+ /* it's possible to get duplicate mounts, and we don't want duplicate
|
||||
+ * notifications */
|
||||
+ seen = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
||||
+ mounts = g_unix_mounts_get (NULL);
|
||||
+
|
||||
+ for (l = mounts; l != NULL; l = l->next) {
|
||||
+ GUnixMountEntry *mount = l->data;
|
||||
+ const char *path;
|
||||
+
|
||||
+ if (g_unix_mount_is_readonly (mount)) {
|
||||
+ g_unix_mount_free (mount);
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ path = g_unix_mount_get_mount_path (mount);
|
||||
+
|
||||
+ if (g_hash_table_lookup_extended (seen, path, NULL, NULL)) {
|
||||
+ g_unix_mount_free (mount);
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ g_hash_table_insert (seen,
|
||||
+ g_strdup (path), GINT_TO_POINTER(1));
|
||||
+
|
||||
+ ldsm_check_mount (mount, has_disk_analyzer);
|
||||
+
|
||||
+ g_unix_mount_free (mount);
|
||||
+ }
|
||||
+
|
||||
+ g_hash_table_destroy (seen);
|
||||
+
|
||||
+ return TRUE;
|
||||
+}
|
||||
+
|
||||
+static gboolean
|
||||
+ldsm_is_hash_item_not_in_mounts (gpointer key,
|
||||
+ gpointer value,
|
||||
+ gpointer user_data)
|
||||
+{
|
||||
+ GList *l;
|
||||
+
|
||||
+ for (l = (GList *) user_data; l != NULL; l = l->next) {
|
||||
+ GUnixMountEntry *mount = l->data;
|
||||
+ const char *path;
|
||||
+
|
||||
+ path = g_unix_mount_get_mount_path (mount);
|
||||
+
|
||||
+ if (strcmp (path, key) == 0)
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
+ return TRUE;
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+ldsm_mounts_changed (GObject *monitor,
|
||||
+ gpointer data)
|
||||
+{
|
||||
+ GList *mounts;
|
||||
+
|
||||
+ /* remove the saved data for mounts that got removed */
|
||||
+ mounts = g_unix_mounts_get (NULL);
|
||||
+ g_hash_table_foreach_remove (ldsm_notified_hash,
|
||||
+ ldsm_is_hash_item_not_in_mounts, mounts);
|
||||
+ g_list_foreach (mounts, (GFunc) g_unix_mount_free, NULL);
|
||||
+
|
||||
+ /* check the status now, for the new mounts */
|
||||
+ ldsm_check_all_mounts (NULL);
|
||||
+
|
||||
+ /* and reset the timeout */
|
||||
+ if (ldsm_timeout_id)
|
||||
+ g_source_remove (ldsm_timeout_id);
|
||||
+ ldsm_timeout_id = g_timeout_add_seconds (CHECK_EVERY_X_SECONDS,
|
||||
+ ldsm_check_all_mounts, NULL);
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+gsd_ldsm_setup (gboolean check_now)
|
||||
+{
|
||||
+ if (ldsm_notified_hash || ldsm_timeout_id || ldsm_monitor) {
|
||||
+ g_critical ("Low disk space monitor already initialized.\n");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if (!notify_is_initted ())
|
||||
+ if (!notify_init ("Low Disk Space Monitor"))
|
||||
+ return;
|
||||
+
|
||||
+ ldsm_notified_hash = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||
+ g_free,
|
||||
+ ldsm_hash_free_slice_gdouble);
|
||||
+
|
||||
+ ldsm_monitor = g_unix_mount_monitor_new ();
|
||||
+ g_unix_mount_monitor_set_rate_limit (ldsm_monitor, 1000);
|
||||
+ g_signal_connect (ldsm_monitor, "mounts-changed",
|
||||
+ G_CALLBACK (ldsm_mounts_changed), NULL);
|
||||
+
|
||||
+ if (check_now)
|
||||
+ ldsm_check_all_mounts (NULL);
|
||||
+
|
||||
+ ldsm_timeout_id = g_timeout_add_seconds (CHECK_EVERY_X_SECONDS,
|
||||
+ ldsm_check_all_mounts, NULL);
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+gsd_ldsm_clean (void)
|
||||
+{
|
||||
+ if (ldsm_timeout_id)
|
||||
+ g_source_remove (ldsm_timeout_id);
|
||||
+ ldsm_timeout_id = 0;
|
||||
+
|
||||
+ if (ldsm_notified_hash)
|
||||
+ g_hash_table_destroy (ldsm_notified_hash);
|
||||
+ ldsm_notified_hash = NULL;
|
||||
+
|
||||
+ if (ldsm_monitor)
|
||||
+ g_object_unref (ldsm_monitor);
|
||||
+ ldsm_monitor = NULL;
|
||||
+}
|
||||
+
|
||||
+#else /* HAVE_LIBNOTIFY */
|
||||
+
|
||||
+static void
|
||||
+gsd_ldsm_setup (gboolean check_now)
|
||||
+{
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+gsd_ldsm_clean (void)
|
||||
+{
|
||||
+}
|
||||
+
|
||||
+#endif /* HAVE_LIBNOTIFY */
|
||||
+
|
||||
+#ifdef TEST
|
||||
+int
|
||||
+main (int argc,
|
||||
+ char **argv)
|
||||
+{
|
||||
+ GMainLoop *loop;
|
||||
+
|
||||
+ gtk_init (&argc, &argv);
|
||||
+
|
||||
+ loop = g_main_loop_new (NULL, FALSE);
|
||||
+
|
||||
+ gsd_ldsm_setup (TRUE);
|
||||
+
|
||||
+ g_main_loop_run (loop);
|
||||
+
|
||||
+ gsd_ldsm_clean ();
|
||||
+ g_main_loop_unref (loop);
|
||||
+
|
||||
+ return 0;
|
||||
+}
|
||||
+#endif /* TEST */
|
||||
Index: gnome-settings-daemon-2.24.0/plugins/housekeeping/gsd-disk-space.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ gnome-settings-daemon-2.24.0/plugins/housekeeping/gsd-disk-space.h
|
||||
@@ -0,0 +1,36 @@
|
||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||
+ * vim: set et sw=8 ts=8:
|
||||
+ *
|
||||
+ * Copyright (c) 2008, Novell, Inc.
|
||||
+ *
|
||||
+ * Authors: Vincent Untz <vuntz@gnome.org>
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License as published by
|
||||
+ * the Free Software Foundation; either version 2 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ *
|
||||
+ * This program is distributed in the hope that it will be useful,
|
||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ * GNU General Public License for more details.
|
||||
+ *
|
||||
+ * You should have received a copy of the GNU General Public License
|
||||
+ * along with this program; if not, write to the Free Software
|
||||
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+#ifndef __GSD_DISK_SPACE_H
|
||||
+#define __GSD_DISK_SPACE_H
|
||||
+
|
||||
+#include <glib.h>
|
||||
+
|
||||
+G_BEGIN_DECLS
|
||||
+
|
||||
+static void gsd_ldsm_setup (gboolean check_now);
|
||||
+static void gsd_ldsm_clean (void);
|
||||
+
|
||||
+G_END_DECLS
|
||||
+
|
||||
+#endif /* __GSD_DISK_SPACE_H */
|
||||
Index: gnome-settings-daemon-2.24.0/plugins/housekeeping/gsd-housekeeping-manager.c
|
||||
===================================================================
|
||||
--- gnome-settings-daemon-2.24.0.orig/plugins/housekeeping/gsd-housekeeping-manager.c
|
||||
+++ gnome-settings-daemon-2.24.0/plugins/housekeeping/gsd-housekeeping-manager.c
|
||||
@@ -302,6 +302,8 @@ gsd_housekeeping_manager_start (GsdHouse
|
||||
g_debug ("Starting housekeeping manager");
|
||||
gnome_settings_profile_start (NULL);
|
||||
|
||||
+ gsd_ldsm_setup (FALSE);
|
||||
+
|
||||
manager->priv->gconf_notify = register_config_callback (manager,
|
||||
GCONF_THUMB_BINDING_DIR,
|
||||
(GConfClientNotifyFunc) bindings_callback);
|
||||
@@ -352,6 +354,8 @@ gsd_housekeeping_manager_stop (GsdHousek
|
||||
do_cleanup (manager);
|
||||
}
|
||||
}
|
||||
+
|
||||
+ gsd_ldsm_clean ();
|
||||
}
|
||||
|
||||
|
||||
Index: gnome-settings-daemon-2.24.0/plugins/housekeeping/housekeeping.gnome-settings-plugin.in
|
||||
===================================================================
|
||||
--- gnome-settings-daemon-2.24.0.orig/plugins/housekeeping/housekeeping.gnome-settings-plugin.in
|
||||
+++ gnome-settings-daemon-2.24.0/plugins/housekeeping/housekeeping.gnome-settings-plugin.in
|
||||
@@ -2,7 +2,7 @@
|
||||
Module=housekeeping
|
||||
IAge=0
|
||||
_Name=Housekeeping
|
||||
-_Description=Automatically prunes thumbnail caches and other transient files
|
||||
+_Description=Automatically prunes thumbnail caches and other transient files, and warns about disk usage
|
||||
Authors=Michael J. Chudobiak
|
||||
Copyright=Copyright © 2008 Michael J. Chudobiak
|
||||
Website=
|
||||
Index: gnome-settings-daemon-2.24.0/po/POTFILES.in
|
||||
===================================================================
|
||||
--- gnome-settings-daemon-2.24.0.orig/po/POTFILES.in
|
||||
+++ gnome-settings-daemon-2.24.0/po/POTFILES.in
|
||||
@@ -16,6 +16,7 @@ plugins/a11y-keyboard/gsd-a11y-preferenc
|
||||
[type: gettext/ini]plugins/dummy/dummy.gnome-settings-plugin.in
|
||||
[type: gettext/ini]plugins/font/font.gnome-settings-plugin.in
|
||||
plugins/font/gsd-font-manager.c
|
||||
+plugins/housekeeping/gsd-disk-space.c
|
||||
plugins/keybindings/gsd-keybindings-manager.c
|
||||
[type: gettext/ini]plugins/keybindings/keybindings.gnome-settings-plugin.in
|
||||
[type: gettext/ini]plugins/keyboard/keyboard.gnome-settings-plugin.in
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 23 20:09:12 CEST 2008 - vuntz@novell.com
|
||||
|
||||
- Add gnome-settings-daemon-low-disk-space.patch, to help drop
|
||||
gnome-volume-manager.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 4 08:46:10 WST 2008 - mboman@suse.de
|
||||
|
||||
|
@ -24,7 +24,7 @@ BuildRequires: fdupes gnome-common gnome-desktop-devel gnome-patch-translation
|
||||
License: GPL v2 or later
|
||||
Group: System/GUI/GNOME
|
||||
Version: 2.24.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Settings daemon for the GNOME desktop
|
||||
Source: %{_name}-%{version}.tar.bz2
|
||||
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-system-proxy-configuration.diff
|
||||
@ -35,6 +35,8 @@ Patch4: gnome-settings-daemon-bnc369263-broken-xkb-layout.patch
|
||||
Patch5: gnome-settings-daemon-randr-fnf7.diff
|
||||
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc427745-force-dpi.patch bnc427745 bgo553652 vuntz@novell.com -- Force the DPI to 96 right now to avoid big fonts.
|
||||
Patch6: gnome-settings-daemon-bnc427745-force-dpi.patch
|
||||
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-low-disk-space.patch bgo557647 vuntz@novell.com -- Show low disk space notifications
|
||||
Patch7: gnome-settings-daemon-low-disk-space.patch
|
||||
Url: http://www.gnome.org
|
||||
Requires: %{name}-lang = %{version}
|
||||
Obsoletes: resapplet
|
||||
@ -88,12 +90,13 @@ Authors:
|
||||
%lang_package
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
#gnome-patch-translation-prepare
|
||||
gnome-patch-translation-prepare
|
||||
%patch2 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
#gnome-patch-translation-update
|
||||
%patch7 -p1
|
||||
gnome-patch-translation-update
|
||||
|
||||
%build
|
||||
autoreconf -f -i
|
||||
@ -146,6 +149,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Thu Oct 23 2008 vuntz@novell.com
|
||||
- Add gnome-settings-daemon-low-disk-space.patch, to help drop
|
||||
gnome-volume-manager.
|
||||
* Sat Oct 04 2008 mboman@suse.de
|
||||
- Update to version 2.24.0:
|
||||
- Fix the fix for read-only home directories (bgo#530975)
|
||||
@ -171,10 +177,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Added gnome-settings-daemon-randr-fnf7.diff to support switching
|
||||
between display output modes on laptop by using the Fn-F7 hotkey
|
||||
(i.e. XF86Display).
|
||||
* Wed Sep 10 2008 federico@novell.com
|
||||
* Tue Sep 09 2008 federico@novell.com
|
||||
- Made gnome-settings-daemon obsolete resapplet, since g-s-d now provides
|
||||
the tray icon to set display settings.
|
||||
* Tue Sep 02 2008 rodrigo@suse.de
|
||||
* Mon Sep 01 2008 rodrigo@suse.de
|
||||
- Update to version 2.23.91:
|
||||
- Removed translatable property on stock gtk-close (Claude Paroz)
|
||||
- Fix a constness warning (Jens Granseuer)
|
||||
@ -186,7 +192,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Updated translations
|
||||
* Mon Sep 01 2008 rodrigo@suse.de
|
||||
- Actually remove upstreamed patch from package.
|
||||
* Wed Aug 27 2008 rodrigo@suse.de
|
||||
* Tue Aug 26 2008 rodrigo@suse.de
|
||||
- Update to version 2.23.90:
|
||||
- PulseAudio check to not ouput "no" twice (Jens Granseuer)
|
||||
- Add status icon when a11y hotkeys are enabled, and display Universal
|
||||
@ -209,16 +215,16 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Use GDK to get DPI (William Jon McCann)
|
||||
- Updated translations
|
||||
- Remove upstreamed patch
|
||||
* Tue Aug 19 2008 cthiel@suse.de
|
||||
* Mon Aug 18 2008 cthiel@suse.de
|
||||
- fix build
|
||||
* Sat Aug 16 2008 federico@novell.com
|
||||
* Fri Aug 15 2008 federico@novell.com
|
||||
- Updated to gnome-settings-daemon-2.23.6.
|
||||
+ Bugs fixed: bgo#544347, bgo#544737, bgo#544733, bgo#165343, bgo#539786,
|
||||
bgo#543289, bgo#543095, bgo#542275, bgo#538699, bgo#533198
|
||||
- Added gnome-settings-daemon-monitor-labeling.diff to implement
|
||||
labeling of monitors in the tray icon, and monitor rotation support
|
||||
as well.
|
||||
* Sat Jun 21 2008 maw@suse.de
|
||||
* Fri Jun 20 2008 maw@suse.de
|
||||
- Update to version 2.23.4:
|
||||
+ Bugs fixed: bgo#523743, bgo#523159, bgo#507386, bgo#525042,
|
||||
bgo#524425, bgo#525426, bgo#530356, bgo#531487, bgo#531589,
|
||||
@ -226,9 +232,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
bgo#536177, bgo#490374, bgo#536581, and bgo#531868
|
||||
+ Updated translations
|
||||
- Drop obsolete patches: gnome-settings-daemon-randr-1.2.diff
|
||||
* Fri May 30 2008 federico@novell.com
|
||||
* Thu May 29 2008 federico@novell.com
|
||||
- Updated gnome-settings-daemon-randr-1.2.diff with the latest fixes from upstream.
|
||||
* Tue May 27 2008 vuntz@suse.de
|
||||
* Mon May 26 2008 vuntz@suse.de
|
||||
- Add gnome-settings-daemon-bnc369263-broken-xkb-layout.patch to
|
||||
unbreak corrupted keymaps on automatic login. This is only a
|
||||
workaround for openSUSE 11.0, unfortunately, since nobody found
|
||||
@ -236,13 +242,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
* Tue May 06 2008 rodrigo@suse.de
|
||||
- Updated gnome-settings-daemon-system-proxy-configuration.patch
|
||||
to add a missing return in non-void function
|
||||
* Thu May 01 2008 rodrigo@suse.de
|
||||
* Wed Apr 30 2008 rodrigo@suse.de
|
||||
- Updated gnome-settings-daemon-system-proxy-configuration.patch
|
||||
to make it apply again
|
||||
* Sat Apr 26 2008 federico@novell.com
|
||||
* Fri Apr 25 2008 federico@novell.com
|
||||
- Added gnome-settings-daemon-randr-1.2.diff to integrate the new
|
||||
functionality to configure RandR 1.2.
|
||||
* Sat Apr 12 2008 maw@suse.de
|
||||
* Fri Apr 11 2008 maw@suse.de
|
||||
- Update to version 2.22.1:
|
||||
+ Fix segfault when shutting down the typing break monitor (Jens Granseuer)
|
||||
(bgo#521786)
|
||||
@ -267,7 +273,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
+ Don't pass GErrorss if we're not going to use them
|
||||
+ Remove obsolete settings for the removed default editor plugin
|
||||
+ Updated translations.
|
||||
* Fri Mar 14 2008 sbrabec@suse.cz
|
||||
* Thu Mar 13 2008 sbrabec@suse.cz
|
||||
- Custom look'n'feel gconf keys moved to gconf2-branding-openSUSE.
|
||||
* Wed Feb 20 2008 maw@suse.de
|
||||
- Update to version 2.21.91:
|
||||
@ -303,7 +309,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
* Fri Jan 25 2008 rodrigo@suse.de
|
||||
- Added missing unpackaged files
|
||||
- Depend on gstreamer-0_10-plugins-base-devel for the sound module
|
||||
* Thu Jan 17 2008 rodrigo@suse.de
|
||||
* Wed Jan 16 2008 rodrigo@suse.de
|
||||
- Disabled patches that need rebase.
|
||||
- No need for gnome-patch-translation
|
||||
- Updated BuildRequires
|
||||
|
Loading…
Reference in New Issue
Block a user