<div dir="ltr"><div>I've not fixed the mir framework packaging to provide an apparmor policy for clients.  So now you can generate a pure-Mir snap like so:<br></div><div><br></div><div>./make-snap -d 15.04/beta-2 --mir mir_demo_client_fingerpaint<br></div><div><br></div><div>And you'll have a snap that can run with no special permissions (i.e. no manual review needed).</div><div><br></div><div>This doesn't fix the issues with XMir needing root.  But now pure-Mir clients don't need to be root.</div><div><br></div><div>-mt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 6:42 PM, Michael Terry <span dir="ltr"><<a href="mailto:michael.terry@canonical.com" target="_blank">michael.terry@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><b>How to generate a framework/service version of unity-system-compositor:</b><div><b><br></b></div><div>bzr branch lp:~mir-team/mir/snappy-packaging</div><div>cd snappy-packaging</div><div>make</div><div><br></div><div>You'll now have a snap in your current directory.</div><div><br></div><div>Once installed, you may control the service with the service name mir_system-compositor_0.</div><div><br></div><div>This snap installs a wrapper for consumers to easily connect Mir apps to the current running compositor, to be used like:</div><div>/apps/mir/current/bin/mir-run [program] [arguments]</div><div><br></div><div><b>How to generate an example xfreerdp program using the above service:</b></div><div><b><br clear="all"></b><div>bzr branch lp:~mterry/+junk/snappy-preload</div><div>cd snappy-preload</div><div>make</div><div>cd tools</div><div>./make-snap -d 15.04/beta-2 --aa-profile /usr/share/apparmor/easyprof/templates/ubuntu-snappy/1.3/unconfined --xmir xfreerdp<br></div><div><br></div><div>Now you can install this and use it like so:</div><div>sudo /apps/bin/xfreerdp.rdp /u:user /p:password /v:server<br></div><div><br></div><div>It unfortunately still needs to be run as root (for xorg input to work).  </div><div><br></div><div><div><b>Next steps:</b></div></div><div><br></div><div>Get the permissions sorted out, to see how to stop running these unconfined / as root.  But everything seems functional!</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">-mt</div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-mt</div></div>
</div>