From b6169329d5466202bc805d422545771ad5312a93 Mon Sep 17 00:00:00 2001 From: flepied Date: Sun, 1 Aug 2004 22:59:49 +0000 Subject: Initial revision git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@179769 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- hostname-post | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 hostname-post (limited to 'hostname-post') diff --git a/hostname-post b/hostname-post new file mode 100755 index 0000000..b8a3a86 --- /dev/null +++ b/hostname-post @@ -0,0 +1,18 @@ +#!/bin/sh +#--------------------------------------------------------------- +# Project : Mandrakelinux +# Module : s2u +# File : hostname-post +# Version : $Id$ +# Author : Frederic Lepied +# Created On : Tue Jul 6 16:10:03 2004 +# Purpose : send a dbus message on hostname change to all +# running X11 dbus session. +#--------------------------------------------------------------- + +for f in `ls /var/tmp/dbus-xsession* 2> /dev/null`; do + . $f + dbus-send --type=method_call --dest=com.mandrakesoft.user.message /com/mandrakesoft/user com.mandrakesoft.user.message string:"Hostname: $1" & +done + +# hostname-post ends here -- cgit v1.2.1