<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.im
{mso-style-name:im;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Well, that’s a history problem. What’s the shortage of running things as root?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks and Best Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steve Zhou<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> magcius@gmail.com [mailto:magcius@gmail.com] <b>On Behalf Of </b>Jasper St. Pierre<br><b>Sent:</b> Friday, September 05, 2014 9:56 AM<br><b>To:</b> Steve (YiLiang) Zhou<br><b>Cc:</b> Pekka Paalanen; VanCutsem, Geoffroy; ivi@lists.tizen.org; wayland-devel@lists.freedesktop.org<br><b>Subject:</b> Re: how to make Xwayland auto start on tizen-ivi-3.0 image<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Don't run anything as root. Why does your application need to modify files under /usr/?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou <<a href="mailto:szhou@telecomsys.com" target="_blank">szhou@telecomsys.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>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><br><span class=im>Thanks and Best Regards</span><br><span class=im>Steve Zhou</span><br><br><span class=im>-----Original Message-----</span><br><span class=im>From: Pekka Paalanen [mailto:<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>]</span><o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>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<o:p></o:p></p></div></div><p class=MsoNormal><span class=im>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.</span><o:p></o:p></p><div><div><p class=MsoNormal>_______________________________________________<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><o:p></o:p></p></div></div></div><p class=MsoNormal><br><br clear=all><br>-- <br> Jasper<o:p></o:p></p></div></div><p>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.</p>
</body></html>