When you receive a message, you must check its status. If the status is TT_WRN_START_MESSAGE
, you must either reply, reject, or fail the message even if the message is a notice, or issue a tt_message_accept call. Programs started using the ToolTalk service that receive a status of TT_WRN_START_MESSAGE
should check tt_message_uid() and tt_message_gid(). You may want to fail the request with TT_DESKTOP_EACCES
if the UNIX UID and/or GID do not agree with the request. Similarly, applications already running may want to reject requests with TT_DESKTOP_EACCES
if there is UID or GID disagreement. This will cause serial rejection of the message until either a matching-ID handler is found, or an autostarted handler fails the request.