aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfcrozat <fcrozat@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2005-03-09 15:08:57 +0000
committerfcrozat <fcrozat@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2005-03-09 15:08:57 +0000
commit1ff9646febd8cfe442738a8f32730d378e9a1a40 (patch)
tree3d0659463228eb7faf622aa514614c7e8d15e5b0
parent9c40bb4a5d62a14facec119976ac96b5eefe9b87 (diff)
downloads2u-1ff9646febd8cfe442738a8f32730d378e9a1a40.tar
s2u-1ff9646febd8cfe442738a8f32730d378e9a1a40.tar.gz
s2u-1ff9646febd8cfe442738a8f32730d378e9a1a40.tar.bz2
s2u-1ff9646febd8cfe442738a8f32730d378e9a1a40.tar.xz
s2u-1ff9646febd8cfe442738a8f32730d378e9a1a40.zip
- add new signal to start update-menus if requested by system
git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@179811 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-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