<div dir="ltr"><div><div><div><div><div>Hi Sebastien, hi all :)<br></div><br>Sorry for not answering before, but I don't have too much spare time and I spent the whole last week trying different things with my snap package. Sebastien, you pointed to me in the right direction, THANK YOU VERY MUCH! :)<br><br></div>I have tryied snapcraft-desktop-helpers with gsettings interface and they did the trick! (with some problems that I think I'll described in another thread in order to not mess this one which i think is solved).<br><br></div>So again, thank you very much for the help :)<br><br></div>Best,<br><br></div>Eloy<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-08 15:38 GMT+02:00 Sebastien Bacher <span dir="ltr"><<a href="mailto:seb128@ubuntu.com" target="_blank">seb128@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 07/09/2016 à 12:04, Eloy García (PC Actual) a écrit :<br>
><br>
><br>
> I get your point and I think this is the real problem. I guess<br>
> gsettings command line tool from the snap is storing the correct<br>
> key/value inside the snap, but the "native" dconf database is not<br>
> getting the new value, because the change wasn't made using "native"<br>
> gsettings command line tool.<br>
</span>No, it's the other way around. Writting to dconf goes through a proxy<br>
service and the client talks to the server using dbus, so with the<br>
gsettings interface your snap can contact the desktop service and the<br>
write is done in the real-session's dconf database.<br>
<br>
Reading is done by opening a file in the user directory though and that<br>
doesn't work "out of the box" from inside the snaps because your code is<br>
going to see the private-snap-dir and not the real system one.<br>
If you use the desktop common part it has a hack for that though<br>
<a href="https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/gtk/launcher-specific#L79" rel="noreferrer" target="_blank">https://github.com/ubuntu/<wbr>snapcraft-desktop-helpers/<wbr>blob/master/gtk/launcher-<wbr>specific#L79</a><br>
<span class=""><br>
> I have tried to search dconf database within snap confinement, but I<br>
> couldn't find it. Where should I search for it to see if the new value<br>
> for the wallpaper was set there?<br>
</span>You should rather look on your desktop using e.g dconf-editor<br>
<br>
<br>
Cheers,<br>
Sebastien Bacher<br>
<br>
</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>