snapping tmux

Joe Coates jcoates at extremenetworks.com
Fri Feb 24 19:26:50 UTC 2017


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.
 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 ?
Thanks,
Joe Coates

________________________________

DISCLAIMER:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170224/e60143f5/attachment.html>


More information about the Snapcraft mailing list