Making a snap of an icon theme
Gustavo Niemeyer
gustavo.niemeyer at canonical.com
Tue May 17 14:54:27 UTC 2016
Hey William,
On Tue, May 17, 2016 at 11:44 AM, William Hua <william.hua at canonical.com>
wrote:
> Hi,
>
> There are a few hacks needed to get GSettings working properly in a snap,
> even when unconfined:
>
Do you know why we're observing denials in the apparmor profile, despite it
being in devmode? Was it actually in devmode?
> - Add dconf-gsettings-backend to stage-packages (this gets you
> libdconfsettings.so)
>
Sounds good.
- Stage gschemas.compiled from the host machine. You can find it under
> /usr/share/glib-2.0/schemas/gschemas.compiled, just copy it using a
> plugin as in:
> https://github.com/elopio/snaps/blob/master/keepassx/snapcraft.yaml#L38
> and make sure
> you commit the file to your repo (this gets you the GSettings schemas)
>
This one feels a bit strange. If it is not in a package, it most likely
means that the content in there depends on what is available on the system,
which may not match what is being made available inside the snap. Would you
mind to cover in more detail how that system works?
- Stage a one-line giomodule.cache file that points to the dconf-gsettings
> backend:
>
> https://github.com/elopio/snaps/commit/b8ae00ae66be8a05ef6590d5ca16c364fa01b5a2
Sounds fine.
- Make sure the binary runs with GIO_MODULE_DIR properly set to
> $SNAP/usr/lib/$ARCH/gio/modules:
>
> https://github.com/elopio/qt5conf/commit/98154248a4dca8352ac34f838998c6636130cf1c
Fine too, thanks!
gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20160517/3a25b3d3/attachment.html>
More information about the snappy-app-devel
mailing list