Thursday, April 26, 2007

Nautilus script to set an image as desktop background



Download nautilus-script archive
The location of nautilus scripts is ~/.gnome2/nautilus-scripts

#!/bin/bash
cwd=`echo "$NAUTILUS_SCRIPT_SELECTED_URIS"|grep -oE '[/][^//].+'|sed 's/%20/ /g'`
gconftool-2 -t "str" --set /desktop/gnome/background/picture_filename "$cwd"



No comments: