The issue (generalizing) is that the Display Manager (GDM) owns the keyboard, mouse and the display. Your process would need to be a client of the display manager or X server. One possible way is to set up a client in /etc/X11/xinit/Xclients.d or in ~/Xclients. You could figure out a way to communicate between your service and your xclient, possibly by a named pipe.
On 01/30/2013 04:37 PM, William Chan wrote: > Actually, the service is just a JMS consumer, it doesn't require UI. When > it receive a message, it calls an external application which needs X11. > There is actually nothing shows on display. > > On 1/30/13 4:26 PM, "Rich Pieri" <[email protected]> wrote: > >> On Wed, 30 Jan 2013 13:05:03 -0800 >> William Chan <[email protected]> wrote: >> ~./Xclients >>> I have my service #chkconfig 5 99 37 since my service needs x11 >> If it requires X11 then it isn't a service. It's an X11 application. It >> will never run as a service as long as it requires an active X11 server. >> >> I suggest separating the service from the UI. This way you can run the >> service as a service and the UI as a UI. >> -- Jerry Feldman <[email protected]> Boston Linux and Unix PGP key id:3BC1EB90 PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
_______________________________________________ Discuss mailing list [email protected] http://lists.blu.org/mailman/listinfo/discuss
