Preload progress (Xorg works)

Michael Terry michael.terry at canonical.com
Mon Mar 30 15:02:22 UTC 2015


Just a quick status update on my snappy-preload progress.  (This is both
the LD_PRELOAD hack + a set of scripts that bundle debs from your system
into a snap using the hack).

I've now gotten Xorg & xterm to startup in a snap.  (When run as root -- to
avoid that I need to use xmir & unity-system-compositor.  A task for
another day.)

Here's how you can replicate a snap with Xorg & xterm:

$ bzr branch lp:~mterry/+junk/snappy-preload
$ cd snappy-preload
$ make
$ cd tools
$ echo -e '#!/bin/sh\nset -e\nXorg :1 &\nexport DISPLAY=:1\nsleep 5\nxterm'
> xterm
$ ./make-snap -d 14.10 -n xterm -v 0 --aa-profile
/usr/share/apparmor/easyprof/templates/ubuntu-snappy/1.3/unconfined -p
xterm -p xorg -p xkb-data ./xterm

Then you have to run it with "sudo /apps/bin/xterm.xterm" (for now, until I
get USC & xmir working) -- and the keyboard focus may not be correct.  But
it runs!

Some things that are new since my last email:
- Support for apps that hardcode /tmp instead of using $TMPDIR (like Xorg
does)
- Support for SNAP_APP_DATA_PATH instead of /var/lib
- Support for more preload overrides (including connect, bind, rename, and
link).
- Workaround bug 972324 by including pre-compiled xkm files if it appears
that you are building a snap with Xorg.

Next task is to see if I can get xfreerdp to work, thereby letting snappy
be a thin client!  Then tackling xmir.

-- 
-mt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20150330/75073ac7/attachment.html>


More information about the snappy-devel mailing list