Making a snap of an icon theme

Tyler Hicks tyhicks at canonical.com
Tue May 17 15:07:57 UTC 2016


On 05/17/2016 09:54 AM, Gustavo Niemeyer wrote:
> Hey William,
> 
> On Tue, May 17, 2016 at 11:44 AM, William Hua <william.hua at canonical.com
> <mailto: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?


From what I can tell, the attached denials are only seen when the snap
is not installed in devmode.

The gsettings issues, while the snap is installed in devmode, are not
caused by confinement. gsettings is simply not available:

$ ubuntukylin-icon-theme.set
/snap/ubuntukylin-icon-theme/100001/command-set.wrapper: 5: exec:
gsettings: not found

Tyler

>  
> 
>     - 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20160517/3c61046a/attachment.pgp>


More information about the snappy-app-devel mailing list