<div dir="ltr">Don't run anything as root. Why does your application need to modify files under /usr/?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou <span dir="ltr"><<a href="mailto:szhou@telecomsys.com" target="_blank">szhou@telecomsys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks everyone,<br>
Xwayland already worked fine, we modify the user-session to use root<br>
login. The reason I want to start it with root is that our x11 app need<br>
modify a directory under /usr, app doesn't have the right.<br>
<span class="im HOEnZb"><br>
Thanks and Best Regards<br>
Steve Zhou<br>
<br>
</span><span class="im HOEnZb">-----Original Message-----<br>
From: Pekka Paalanen [mailto:<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>]<br>
</span><div class="HOEnZb"><div class="h5">Sent: Thursday, September 04, 2014 2:49 PM<br>
To: VanCutsem, Geoffroy<br>
Cc: Steve (YiLiang) Zhou; <a href="mailto:ivi@lists.tizen.org">ivi@lists.tizen.org</a>;<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image<br>
<br>
On Wed, 3 Sep 2014 18:19:59 +0000<br>
"VanCutsem, Geoffroy" <<a href="mailto:geoffroy.vancutsem@intel.com">geoffroy.vancutsem@intel.com</a>> wrote:<br>
<br>
> > -----Original Message-----<br>
> > From: Pekka Paalanen [mailto:<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>]<br>
> > Sent: Wednesday, September 03, 2014 9:04 AM<br>
> > To: Steve (YiLiang) Zhou<br>
> > Cc: VanCutsem, Geoffroy; <a href="mailto:ivi@lists.tizen.org">ivi@lists.tizen.org</a>; wayland-<br>
> > <a href="mailto:devel@lists.freedesktop.org">devel@lists.freedesktop.org</a><br>
> > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image<br>
> ><br>
> > On Tue, 2 Sep 2014 10:14:44 +0800<br>
> > "Steve (YiLiang) Zhou" <<a href="mailto:szhou@telecomsys.com">szhou@telecomsys.com</a>> wrote:<br>
> ><br>
> > > Thanks Geoffroy,<br>
> > ><br>
> > > Your information is very important for me , I'm sure that<br>
> > > xwayland module is loaded , so is it possible that I startup<br>
> > > Weston with root and start a shell script automatically which<br>
execute xwayland in it?<br>
> ><br>
> > FWIW, when xwayland.so is loaded into Weston, Weston itself will be<br>
> > listening on the X11 display socket for connections. When the first<br>
> > X11 client connects, it will spawn the Xwayland X server to handle<br>
> > that and all following X11 clients.<br>
> ><br>
> > I suppose all you need is the DISPLAY environment variable, and know<br>
<br>
> > when Weston is ready to receive X11 connections. I believe<br>
> > xwayland.so module sets the DISPLAY variable for all child processes<br>
of Weston.<br>
> One additional note on this is that we start Weston as a standard user<br>
(not root).<br>
<br>
So does everyone else AFAIK.<br>
<br>
Xwayland X server does not need any privileges, because it does not open<br>
any devices directly (if not for Glamor).<br>
<br>
However, you should check that the log directory is writable by the<br>
Xwayland process, but if that fails, there should be some yelling in<br>
where ever Weston's stderr goes to.<br>
<br>
<br>
Thanks,<br>
pq<br>
<br>
</div></div><span class="im HOEnZb">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.<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>