[Ilugc] Xmessage in SUSE

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Thu, 7 Jun 2012 00:55:04 +0530

On Jun 6, 2012 10:57 AM, "Rajesh kumar" <rkrajeshkumar87 at gmail.com> wrote:


I am building a custom application which starts in roots cron every day. I
am using Xmessage to alert the user that the application is completed
running. It should alert all the user who have logged in via a popup.

Use dbus, it is designed exactly for this usage.

X has an authentication mechanism between the X server and the client. The
shared secret MIT MAGIC COOKIE is stored in the xauthority file which is
accessible only by the local user who has started the X session. If you
want to applications launched by your cron job to communicate to X sessions
of other users, you will have to bypass the X session security mechanisms.
Not a recommended practice.

- Raja

Other related posts: