caulier.gilles at gmail.com
Thu Apr 4 03:55:38 BST 2019
I found also 2 sample of code to set wallpaper under Windows and MacOS :
For Windows, we cross compile with MXE (based on Mingw)
For MacOS, we use Macports.
For both non Linux, i'm able to test on my computers.
Le jeu. 4 avr. 2019 à 04:52, Gilles Caulier <caulier.gilles at gmail.com> a
> Le jeu. 4 avr. 2019 à 00:14, Igor Antropov <antropovi at yahoo.com> a écrit :
>> I just tried to make it with QDBus. I queried all dbus methods, but there
>> wasn’t any for wallpaper.
>> Are you talking about X11 way or about gconf?
>> Gconf is obsolete, but it is possible to make it with GLib.
>> I can rewrite this
>> https://github.com/GNOME/glib/blob/master/gio/gsettings-tool.c with
>> «set org.gnome.desktop.background picture-uri file:///path/to/file.jpg»
>> as args for example.
> 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.
>> At the same time, I think, it is possible to change background with X11
>> everywhere. But it can work with X11 Pixmap only.
> This can be a solution for all other linux desktop which do not support
> dbus interface.
> For info, this is the GThumb wallapaper tool code :
> 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.
> Gilles Caulier
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Digikam-devel