Discussion:
xmsg Problem ? -- Unable to Display Message ?.
(too old to reply)
Sriram
2004-11-16 06:09:01 UTC
Permalink
Hi,
I have a small problem.

I have a daemon process that starts at system bootup.

When i send a packet to the daemon process.
It executes an shell script.


The shell script contains a xmsg "Hello"


The problem is The message is not getting printed if the daemon
process
starts at system bootup.


If i start the daemon process as the child of the shell. (ie after
system has booted)


I get the message.


I dont know what is the problem ?.


Please Advice.


Regards,
Sriram
Dick Wesseling
2004-11-19 21:43:54 UTC
Permalink
Post by Sriram
The problem is The message is not getting printed if the daemon
process
starts at system bootup.
That is because the daemon is not authorized to access the X display,
Post by Sriram
If i start the daemon process as the child of the shell. (ie after
system has booted)
I get the message.
When you start the daemon process this way it knows who you are (i.e.
the path of your home directory) and it will retrieve authorisation
credentials from a file in your home directory, typically ~/.Xauthority.
Loading...