So here is my GNOME background config file:
less .gconf/desktop/gnome/background/%gconf.xml
Code:
<?xml version="1.0"?>
<gconf>
<entry name="primary_color" mtime="1249674695" type="string">
<stringvalue>#6666baba0000</stringvalue>
</entry>
<entry name="secondary_color" mtime="1249674695" type="string">
<stringvalue>#6666baba0000</stringvalue>
</entry>
<entry name="picture_filename" mtime="1249674695" type="string">
<stringvalue>/usr/share/images/desktop-base/desktop-background</stringvalue>
</entry>
<entry name="color_shading_type" mtime="1249674695" type="string">
<stringvalue>solid</stringvalue>
</entry>
<entry name="picture_options" mtime="1249674695" type="string">
<stringvalue>zoom</stringvalue>
</entry>
</gconf>
Now I have a wallpaper which is stored at:
/usr/share/images/desktop/wallpapers/My-WallPaper.jpg
and I would like to edit the %gconf.xml file to use the above wallpaper:
Code:
<stringvalue>/usr/share/images/desktop/wallpapers/My-WallPaper.jpg</stringvalue>
I know that sed, awk or perl can be used to achieve this but not sure how to do it. Reading the
sed one liner did not help.
Thanks.