<div dir="ltr"><div><div><div><div>Hi Didier!<br><br></div>Thank you very much for your help. It worked like a charm and now my snap package containing my application works flawlesly even in MATE desktops :)<br><br></div>Again, THANK YOU! :D<br><br></div>Best,<br><br></div>Eloy<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-19 16:20 GMT+02:00 Didier Roche <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 19/09/2016 à 15:34, Eloy García (PC Actual) a écrit :<br>
> Hi all.<br>
><br>
> I'm using snapcraft-desktop-helpers<br>
> (<a href="https://github.com/ubuntu/snapcraft-desktop-helpers" rel="noreferrer" target="_blank">https://github.com/ubuntu/<wbr>snapcraft-desktop-helpers</a>) part for<br>
> providing a "bridge" for gsettings between my snapped application and<br>
> the host system (I'm using desktop/gtk3 part although I tried<br>
> desktop/gtk2 part and even desktop/glib-only). The application sets a<br>
> custom selected wallpaper and it is working great under GNOME 3 and<br>
> Unity. However, it is not working for MATE desktop.<br>
><br>
> This is the command I execute inside the snap for Unity and GNOME 3<br>
> desktops:<br>
> gsettings set org.gnome.desktop.background picture-uri<br>
> file://blablabla.jpg<br>
><br>
> And this is the command I execute for MATE desktop:<br>
> gsettings set org.mate.background picture-filename blablabla.jpg<br>
><br>
> Checking the application's log I find:<br>
><br>
> [15:17:40] AWT-EventQueue-0 ERROR LinuxWallpaperChanger:102 - No such<br>
> schema 'org.mate.background'<br>
><br>
> Those commands are working fine using the native application (I mean,<br>
> the application directly running on the host and not installed via<br>
> snap package)<br>
><br>
> Do I need to do something else to support MATE desktop or maybe it's a<br>
> bug for snapcraft-desktop-helpers wiki part?<br>
><br>
> Thank you very much for your help.<br>
<br>
</span>Hey Eloy!<br>
<br>
Actually, it's not a bug, but the way gsettings is working. You need to<br>
have the schema files you are writing to and/or reading from available<br>
to your application for gsettings validating its input/output. By<br>
default, you application isn't providing those I guess.<br>
<br>
You can either ship directly the xml files as part of your snap or stage<br>
the ubuntu package containing the schema. This is the reason why you can<br>
see this playpen example shipping gsettings-desktop-schemas:<br>
<a href="https://github.com/ubuntu/snappy-playpen/blob/master/ubuntukylin-icon-theme/snapcraft.yaml#L35" rel="noreferrer" target="_blank">https://github.com/ubuntu/<wbr>snappy-playpen/blob/master/<wbr>ubuntukylin-icon-theme/<wbr>snapcraft.yaml#L35</a><br>
<br>
In your ubuntu-mate case, after a quick search, it seems that you want<br>
to stage mate-desktop-common.<br>
<br>
Then, the desktop wrapper will do the right thing compiling them the<br>
first time you install your snap or upgrade it.<br>
<br>
I hope this helps!<br>
Cheers,<br>
Didier<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Eloy García Almadén<br></div></div>
</div>