Skip to content

Commit

Permalink
enhanced for use with gnome3/unity
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlpete committed Nov 2, 2011
1 parent 9260d81 commit 37b2ff4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xplanet-gnome2.sh
Expand Up @@ -43,4 +43,10 @@ xplanet -output $outputFile -geometry $geometry -config $configFile \
$xoptions

# Update the Gnome backgound
gconftool-2 -t str -s /desktop/gnome/background/picture_filename $outputFile
GVERSION=`(gnome-session --version | awk '{print $2}' | cut -d '.' -f1)`
if [ $GVERSION -eq 3 ]; then
##gnome3/unity
gsettings set org.gnome.desktop.background picture-uri file:///$outputFile
else
gconftool-2 -t str -s /desktop/gnome/background/picture_filename $outputFile
fi

0 comments on commit 37b2ff4

Please sign in to comment.