Hallo Alexandre, Du schriebst am Thu, 25 Apr 2013 09:19:09 +0700:
> One guy send me next e-mail: > ========================= ... > When a non-root user su's to the root user, then runs "pacmanxg" or > "export display=:0" ; pacmanxg", or sudo's the program call, the program > crashes as follows: > > [jghodd@bluestar ~]$ sudo pacmanxg > No protocol specified > An unhandled exception occurred at $0807F208 : > egui : Can not connect to display tinternalapplication . Yes, that's because the su or sudo session doesn't have credentials to use the starting session's X display. This will happen with any other program called this way if it attempts to use the X display either, and just so for any other user besides root that doesn't "own" the display. Use something like this: sudo -u <USER> xauth -f <HOME>/.Xauthority merge /home/$USER/.Xauthority This will add the display _owner's_ credentials to the .Xauthority in the <HOME> directory of <USER> (text in "<>" has to be adapted appropriately) to give him access to this display. Or you could do it like this: xauth extract - $DISPLAY |\ sudo -u <USER> xauth -f <HOME>/.Xauthority merge - XAUTHORITY=<HOME>/.Xauthority exec sudo -u <USER> <COMMAND> which will do about the same thing another way. (And it will even suffice to do this once as long as the X configuration doesn't change or something else provokes a recreation of the display owner's .Xauthority file.) As the others said, this is an X issue, it doesn't have anything to do with MSEIDE-MSEGUI and will affect any other program the same. The above recipes can be found abundantely "on the net" and explained to any detail you are interested in. -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

