I know there is a way to do this, but I just dumped a bunch of my favorite wallpaper files in /usr/share/backgrouds/. In order for my Ubutnu 17.10 to use them, I need to edit the artful-wallpapers.xml file and add each file name to a statement looking like this:
<wallpaper> <name>calm</name> <filename>/usr/share/backgrounds/02488_calm_1440x900.jpg</filename> <options>zoom</options> <pcolor>#000000</pcolor> <scolor>#000000</scolor> <shade_type>solid</shade_type> </wallpaper>
This is long and tedious to do one at a time, and I am sure I have merged data before, but for the life of me I cannot remember how.
A script would be very helpful, or at least directions to a tutorial.
Thanks in advance.