<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 01/11/2016 à 14:55, Joe Coates a
écrit :<br>
</div>
<blockquote
cite="mid:DM5PR04MB01893E5326B1FA2459BBC433ABA10@DM5PR04MB0189.namprd04.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
<div class="WordSection1">
<p class="MsoNormal">The main app in my snapped feature wants to
initiate some xterm sessions and run a different local snap
command in each. However, I can’t manage to get a terminal
emulator of any sort to behave correctly within the snap (if
they startup at all, then they cannot receive keystroke
input). I have tried xterm, rxvt, and the vte-based sakura as
staged-packages. Plugging to the X11 slot interface (and
even Unity7) seems to have no effect. They build OK but
fail at runtime with similar failures : <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>/snap/exfab/x1/usr/bin/sakura: error
while loading shared libraries: libgtk-3.so.0: cannot open
shared object file: No such file or directory<o:p></o:p></p>
<p class="MsoNormal">>/snap/exfab/x1/usr/bin/rxvt-xterm:
error while loading shared libraries: libX11.so.6: cannot open
shared object file: No such file or directory<o:p></o:p></p>
<p class="MsoNormal">>/snap/exfab/x1/usr/bin/xterm: error
while loading shared libraries: libXft.so.2: cannot open
shared object file: No such file or directory<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My target machine is a Xenial VM in
VirtualBox . . .<o:p></o:p></p>
<p class="MsoNormal">Does anyone do terminal emulation from a
snap ? </p>
</div>
</blockquote>
<br>
This is still quite hard to achieve nowdays (I did try myself half a
year ago with byobu/tmux), due to a couple of issues:<br>
- you need for most of them to have some /dev/pts access, and no
interfaces as of today exists to mediate this.<br>
- you can't execute a snap command from another snap.<br>
<br>
I remember that we discussed a couple of months ago about a "shell"
or similar interface to get that done. I'm ccing Gustavo to see if
he has more news on those to share with us.<br>
<br>
Cheers,<br>
Didier<br>
</body>
</html>