<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 4 avr. 2019 à 00:14, Igor Antropov <<a href="mailto:antropovi@yahoo.com">antropovi@yahoo.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>I just tried to make it with QDBus. I queried all dbus methods, but there wasn’t any for wallpaper.</div><div><br></div><div>Are you talking about X11 way or about gconf?</div><div><br></div><div>Gconf is obsolete, but it is possible to make it with GLib.</div><div>I can rewrite this <a href="https://github.com/GNOME/glib/blob/master/gio/gsettings-tool.c" target="_blank">https://github.com/GNOME/glib/blob/master/gio/gsettings-tool.c</a> with </div><div>«<span style="font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;background-color:rgb(239,240,241)">set org.gnome.desktop.background picture-uri <a>file:///path/to/file.jpg</a></span>» as args for example.</div></div></blockquote><div><br></div><div>If we can set Gnome wallpaper without ot be relevant of any GTk libraries, it will be safe so far. Using dbus is the right way. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br></div><div>At the same time, I think, it is possible to change background with X11 everywhere. But it can work with X11 Pixmap only.</div><div><br></div></div></blockquote><div><br></div><div>This can be a solution for all other linux desktop which do not support dbus interface.</div><div> </div><div>For info, this is the GThumb wallapaper tool code :</div><div><br></div><div><a href="https://github.com/GNOME/gthumb/tree/d644a77a1b2085ce2c947719fb3f9107e068c42c/extensions/desktop_background">https://github.com/GNOME/gthumb/tree/d644a77a1b2085ce2c947719fb3f9107e068c42c/extensions/desktop_background</a><br></div><div><br></div><div>As i can see, GThumb is able to set wallpaper properties as centered, tiled, adapted, etc. This can be a plus for the digiKam plugin. </div><div><br></div><div>Gilles Caulier</div></div></div>