<div dir="ltr">Hi Joe,<div><br></div><div> I made a classic snap.</div><div> <a href="https://github.com/shawn111/tmux.snap">https://github.com/shawn111/tmux.snap</a></div><div><br></div><div> But you are right, I'm not sure how to make it confined.</div><div><br></div><div>Regards,</div><div>Shawn</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 25, 2017 at 3:26 AM, Joe Coates <span dir="ltr"><<a href="mailto:jcoates@extremenetworks.com" target="_blank">jcoates@extremenetworks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_8415125200451611769WordSection1">
<p class="MsoNormal">I’ve been trying to add tmux to my snap to provide separate command line environments to each of several processes in the snap (the target is Ubuntu-core). It builds OK but it fails silently upon execution (by silent I mean no appArmor
denials or error messages in journalctl or syslog). The tmux log indicates “fatal: tcgetattr failed: Bad file descriptor”, and I believe it is trying to access the session TTY (“client 0x10e9590 IDENTIFY_ENVIRON SSH_TTY=/dev/pts/1”) . This behavior is
consistent on ubuntu-core, core+classic, and ubuntu server. <u></u><u></u></p>
<p class="MsoNormal"> Before delving further into tmux code I’d like to know if there is some basic restriction preventing this from working – is the console session off limits to snaps ? I noticed some early attempts at snapping tmux on github, but none
of them seem to have been successful. Has anyone tried this, or can perhaps offer any advice ?
<u></u><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Joe Coates<u></u><u></u></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
DISCLAIMER:<br>
This e-mail and any attachments to it may contain confidential and proprietary material and is solely for the use of the intended recipient. Any review, use, disclosure, distribution or copying of this transmittal is prohibited except by or on behalf of the
intended recipient. If you have received this transmittal in error, please notify the sender and destroy this e-mail and any attachments and all copies, whether electronic or printed.<br>
</font>
</div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div>