Re: Notify all users

2008-09-09 Thread Colin Guthrie
Yan Seiner wrote:
 How do I go about notifying all users?  I am looking for an equivalent 
 of 'wall' for X.  xmessage doesn't really work very well as I'd have to mess 
 with xhost in each user's profile.
 
 I've looked at libnotify, but it runs into dbus security issues.
 
 So how does a sysadmin notify all users of an impending system event (like a 
 shutdown)?

I think you are probably on roughly the right lines with libnotify, but 
not the library itself, more the specification.

I guess some sort of event from hal or similar should be exposed to all 
users via dbus and some sort of process (e.g. the notification 
notification daemon that displays messages conforming to the FDO 
notification spec - the kind libnotify generates) will be responsible 
for displaying said message to each user.

I'm not very clued up with dbus to know much about how the system and 
session buses interact etc. but I think this is the right general approach.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Notify all users

2008-09-09 Thread Gene Heskett
On Tuesday 09 September 2008, Yan Seiner wrote:
How do I go about notifying all users?  I am looking for an equivalent
of 'wall' for X.  xmessage doesn't really work very well as I'd have to mess
with xhost in each user's profile.

I've looked at libnotify, but it runs into dbus security issues.

So how does a sysadmin notify all users of an impending system event (like a
shutdown)?

What is wrong with just using wall?

--Yan
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg



-- 
Cheers, Gene
There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order.
-Ed Howdershelt (Author)
If at first you don't succeed, work for Microsoft. 
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Notify all users

2008-09-09 Thread Tomasz Chmielewski
Gene Heskett schrieb:
 On Tuesday 09 September 2008, Yan Seiner wrote:
 How do I go about notifying all users?  I am looking for an equivalent
 of 'wall' for X.  xmessage doesn't really work very well as I'd have to mess
 with xhost in each user's profile.

 I've looked at libnotify, but it runs into dbus security issues.

 So how does a sysadmin notify all users of an impending system event (like a
 shutdown)?

 What is wrong with just using wall?

Does wall display anything for users running X? No.


-- 
Tomasz Chmielewski
http://wpkg.org


___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Notify all users

2008-09-09 Thread Tomasz Chmielewski
Gene Heskett schrieb:
 On Tuesday 09 September 2008, Tomasz Chmielewski wrote:
 Gene Heskett schrieb:
 On Tuesday 09 September 2008, Yan Seiner wrote:
 How do I go about notifying all users?  I am looking for an equivalent
 of 'wall' for X.  xmessage doesn't really work very well as I'd have to
 mess with xhost in each user's profile.

 I've looked at libnotify, but it runs into dbus security issues.

 So how does a sysadmin notify all users of an impending system event
 (like a shutdown)?
 What is wrong with just using wall?
 Does wall display anything for users running X? No.
 
 How did you disable that?  Here it echo's to every open shell and opens a 
 message window on windows without open shells on them.

Do you really think every Joe and Mary has a shell window opened?


-- 
Tomasz Chmielewski
http://wpkg.org

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg