Thanks everyone, Xwayland already worked fine, we modify the user-session to use root login. The reason I want to start it with root is that our x11 app need modify a directory under /usr, app doesn't have the right.
Thanks and Best Regards Steve Zhou -----Original Message----- From: Pekka Paalanen [mailto:[email protected]] Sent: Thursday, September 04, 2014 2:49 PM To: VanCutsem, Geoffroy Cc: Steve (YiLiang) Zhou; [email protected]; [email protected] Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image On Wed, 3 Sep 2014 18:19:59 +0000 "VanCutsem, Geoffroy" <[email protected]> wrote: > > -----Original Message----- > > From: Pekka Paalanen [mailto:[email protected]] > > Sent: Wednesday, September 03, 2014 9:04 AM > > To: Steve (YiLiang) Zhou > > Cc: VanCutsem, Geoffroy; [email protected]; wayland- > > [email protected] > > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > On Tue, 2 Sep 2014 10:14:44 +0800 > > "Steve (YiLiang) Zhou" <[email protected]> wrote: > > > > > Thanks Geoffroy, > > > > > > Your information is very important for me , I'm sure that > > > xwayland module is loaded , so is it possible that I startup > > > Weston with root and start a shell script automatically which execute xwayland in it? > > > > FWIW, when xwayland.so is loaded into Weston, Weston itself will be > > listening on the X11 display socket for connections. When the first > > X11 client connects, it will spawn the Xwayland X server to handle > > that and all following X11 clients. > > > > I suppose all you need is the DISPLAY environment variable, and know > > when Weston is ready to receive X11 connections. I believe > > xwayland.so module sets the DISPLAY variable for all child processes of Weston. > One additional note on this is that we start Weston as a standard user (not root). So does everyone else AFAIK. Xwayland X server does not need any privileges, because it does not open any devices directly (if not for Glamor). However, you should check that the log directory is writable by the Xwayland process, but if that fails, there should be some yelling in where ever Weston's stderr goes to. Thanks, pq CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. _______________________________________________ IVI mailing list [email protected] https://lists.tizen.org/listinfo/ivi
