title: How to change the desktop wallpaper on linux from within a shell/bash script
body: <p>I would like to change the wallpaper (to a specific file using its full path) on linux from a shell/bash script.</p>
  
  <p>I already found several approaches (see below) to do that - but those dont work on all desktop environments.</p>
  
  <p>a) Using gnome-settings-daemon / gsettings:</p>
  
  <pre><code>gsettings set org.gnome.desktop.background picture-uri   file://$fullPathToMyImage
  </code></pre>
  
  <p>b) using gconftool-2</p>
  
  <pre><code>gconftool-2 --type=string --set /desktop/gnome/background/picture_filename $fullPathToMyImage
  </code></pre>
  
  <p>c) using feh</p>
  
  <pre><code>feh --bg-scale $fullPathToMyImage
  </code></pre>
  
  <p>I am now searching for additional methods (while Gnome seems covered with a, b and c) - preferable for all desktop environments (and all linux distributions).</p>
  
  <p>So far i am at least missing methods for KDE4/5 and XFCE</p>
  
  <p>Similar post: <a href="https://stackoverflow.com/questions/5550895/shell-script-changing-desktop-wallpaper">Shell script changing desktop wallpaper</a></p>