<div dir="ltr"><div><div><div><div><div><div>Hi all again.<br><br></div>As Sebastian Bacher suggested, I included gsettings binary within my snap package. This is the snapcraft.yaml file:<br><br>name: wallpaperdownloader<br>version: "2.2"<br>summary: Download and manage your favorite wallpapers from the Internet<br>description: WallpaperDownloader is a simple GUI Java based application for downloading and managing wallpapers from the Internet<br>confinement: strict<br><br>apps:<br>  wallpaperdownloader:<br>    command: wallpaperdownloader.sh<br>    plugs: [x11, network-bind, home]<br><br>parts:<br>  # Pulls the code from the original source (master branch)<br>  wallpaperdownloader:<br>    plugin: maven<br>    source: .<br>    stage-packages:<br>      - libglib2.0-bin<br><br>  # It will copy wallpaperdownloader script into /bin/<br>  # This script contains all the commands needed (sets env variables, launches the jar file...) to<br>  # execute the application<br>  exec:<br>    plugin: copy<br>    files:<br>      wallpaperdownloader.sh: bin/wallpaperdownloader.sh<br><br><br></div>-------------<br><br></div>Including libglib2.0-bin as stage-package, the application doesn't complain anymore about "No such file or directoy" because it finds gsettings binary on stage/usr/bin. Nevertheless, nothing happens when command line "gsettings set org.gnome.desktop.background picture-uri file://blablabla.jpg" is executed within the java code. I don't know how to "link" this command inside the snap with the native "command" and configuration files outside. The execution of this command should affect to the native environment and not the snap confinement created I guess, in order to change the current wallpaper in GNOME 3 or Unity.<br><br></div>Any ideas or suggestions? Thank you very much for your time and effort :)<br><br></div>Best,<br></div>Eloy<br><div><div><div><div><div><br><br><br><div class="gmail_extra"><br><div class="gmail_quote">2016-08-26 11:00 GMT+02:00 Eloy García (PC Actual) <span dir="ltr"><<a href="mailto:eloy.garcia.pca@gmail.com" target="_blank">eloy.garcia.pca@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr">Thank you very much for your quick answer. I want to implement this for other desktop environments, so I guess I have to include every binary I want to invoke, right?</p>
<p dir="ltr">I'll give it a try. Thanks again!</p><div class="gmail-HOEnZb"><div class="gmail-h5">
<div class="gmail_extra"><br><div class="gmail_quote">El 26 ago. 2016 10:26 a. m., "Sebastien Bacher" <<a href="mailto:seb128@ubuntu.com" target="_blank">seb128@ubuntu.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 26/08/2016 à 07:23, Eloy García (PC Actual) a écrit :<br>
> I have tried gsettings and Unity7 interfaces with no luck. i guess is<br>
> more a question of executing a program outside the confinment. How<br>
> could I do that? Thank you very much!<br>
<br>
Hey,<br>
<br>
Using the system command is not allowed but you can include it in your<br>
snap and it should work (either copy the binary or stage-packages the deb)<br>
<br>
Cheers,<br>
<br>
Sebastien Bacher<br>
<br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">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/mailm<wbr>an/listinfo/snapcraft</a><br>
</blockquote></div></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Eloy García Almadén<br></div></div>
</div></div></div></div></div></div></div>