Conversation
This is an attempt at a snapcraft.yaml file in order to be able to build and publish Synaptic as a Snap package on the Snap store. Ideally we would want the confinement to be strict.
|
Are you sure this is going to work? As far as I know, Synaptic does not use PackageKit as its backend. |
|
No, I am not sure it is going to work at all, I just thought I'd throw it up as something to start from. The confinement is set to A first step would be to get it working in devmode then later to get it working confined in strict mode. |
|
For this to work some extra steps would be needed I think (I have not thought about this deeply). Synaptic talks directly to libapt and the ABI changes with every distro version (usually) so a classic snap is not an option. A confined/devmode snap gets a constructed root filesystem which is read-only and not the host-fs. With some code synaptic could detect if it runs inside a snap and then use /var/lib/snapd/hostfs (iirc that was the path) as its rootdir and then this might work. Libapt has support to set root dirs and it will fork dpkg in the right way. Note that this is (probably) not well tested. |
|
If we take a look at the Another interesting Maybe this could provide some insight or hints? |
|
Both mentioned apps have native PackageKit support, as far as I know. |
|
Then maybe we could the |
This is an attempt at a snapcraft.yaml file in order to be able to build and publish Synaptic as a Snap package on the Snap store.
Ideally we would want the confinement to be strict.