aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--s2u.c12
-rw-r--r--s2u.spec5
2 files changed, 15 insertions, 2 deletions
diff --git a/s2u.c b/s2u.c
index 547b8f9..06b55fb 100644
--- a/s2u.c
+++ b/s2u.c
@@ -134,8 +134,18 @@ filter_function (DBusConnection * connection,
g_spawn_async("/", args, NULL, 0, NULL, NULL, NULL, NULL);
return DBUS_HANDLER_RESULT_HANDLED;
- } else
+ } else {
+ if (dbus_message_is_signal (message,
+ "com.mandrakesoft.user",
+ "updatemenu")) {
+
+ g_spawn_command_line_async("/etc/X11/xinit.d/menu", NULL);
+
+ return DBUS_HANDLER_RESULT_HANDLED;
+ }
+ else
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
+ }
}
diff --git a/s2u.spec b/s2u.spec
index 8f27360..5177170 100644
--- a/s2u.spec
+++ b/s2u.spec
@@ -1,7 +1,7 @@
Summary: System to user tools
Name: s2u
Version: 0.5
-Release: 2mdk
+Release: 3mdk
URL: http://www.mandrakelinux.com/
Source0: %{name}-%{version}.tar.bz2
License: GPL
@@ -39,6 +39,9 @@ rm -rf $RPM_BUILD_ROOT
# MAKE THE CHANGES IN CVS: NO PATCH OR SOURCE ALLOWED
%changelog
+* Wed Mar 09 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.5-3mdk
+- add new signal to start update-menus if requested by system
+
* Tue Mar 08 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.5-2mdk
- connect to X server, so s2u exits when X exits