Can't get snap gui apps (notepadqq and firefox) to run in LXD/LXC container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When starting notepadqq or firefox I get ln errors such as:
ln: failed to create symbolic link '/home/
ln: failed to create symbolic link '/home/
ln: failed to create symbolic link '/home/
ln: failed to create symbolic link '/home/
ln: failed to create symbolic link '/home/
ln: failed to create symbolic link '/home/
ln: failed to create symbolic link '/home/
Then the gui window does not display but the app keeps running, eventually getting this error:
QXcbConnection: Could not connect to display :0
Aborted (core dumped)
x11 apps (such as firefox) work fine if installed with apt.
The host is running Ubuntu 18.04 and so is the container.
dmesg shows this error for notepadqq:
[349363.925230] audit: type=1107 audit(152712351
description: | updated |
description: | updated |
description: | updated |
description: | updated |
NOTE: the apparmor denial is not relate dto the problem.
I don't think this is something strictly related to snapd. If anything I suspect that LXD needs to support this use case and extend its own sandbox accordingly. I'm adding a lxd task to track this.