<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Set BING Background as your Desktop Wallpaper in GNOME</title>
	<atom:link href="http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/</link>
	<description>Trying to move every bit to cloud.</description>
	<lastBuildDate>Thu, 05 Apr 2012 15:31:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Set Bing images as your wallpaper &#171; The Ubuntu Incident</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-510</link>
		<dc:creator>Set Bing images as your wallpaper &#171; The Ubuntu Incident</dc:creator>
		<pubDate>Thu, 05 Apr 2012 15:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-510</guid>
		<description>[...] Set BING Background as your Desktop Wallpaper in GNOME (in PHP, for Gnome 2 only)  Share this:FacebookEmailPrintLike this:LikeBe the first to like this post.    Categories: python Tags: bing, bing image of the day, bing wallpaper       Comments (0) Trackbacks (0) Leave a comment Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] Set BING Background as your Desktop Wallpaper in GNOME (in PHP, for Gnome 2 only)  Share this:FacebookEmailPrintLike this:LikeBe the first to like this post.    Categories: python Tags: bing, bing image of the day, bing wallpaper       Comments (0) Trackbacks (0) Leave a comment Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karfield</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-481</link>
		<dc:creator>Karfield</dc:creator>
		<pubDate>Mon, 05 Dec 2011 12:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-481</guid>
		<description>I think it&#039;s no need to use php-cli. I write a bash script, it works fine too;)
Here&#039;s my code:

#!/bin/bash
#
# Write by Karfield
#
# Free to use it!)
#
BING=http://www.bing.com
TMPFILE=/tmp/bing.html
WALLPAPER=/home/$USER/Downloads/bing.jpg
echo &quot;Try to get the BING page...&quot;
wget -q $BING -O $TMPFILE
! [ -e $TMPFILE ] &amp;&amp; exit;
URL=$BING$(sed -n &quot;s/\(.*\)g_img={url\:&#039;\([0-9a-Z?=%_-\\/\\.]*\)&#039;\,id\(.*\)/\2/p&quot; &lt; $TMPFILE)
echo &quot;Get the picture&#039;s URL = &quot;$URL
rm $TMPFILE
mv $WALLPAPER{,-old}
echo &quot;Download the wallpaper... &quot;
wget -q $URL -O $WALLPAPER
if [ -e $WALLPAPER ]; then
	echo &quot;We got it, set the background...&quot;
	gconftool-2 --type string --set /desktop/gnome/background/picture_filename $WALLPAPER
	gconftool-2 --type string --set /desktop/gnome/background/picture_options zoom
	gconftool-2 --type string --set /desktop/gnome/background/primary_color black
fi


You can save the code as update_bing_wallpaper.sh, don&#039;t forget to change the file mode as &quot;u+x&quot;. And run it to change your background.</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s no need to use php-cli. I write a bash script, it works fine too;)<br />
Here&#8217;s my code:</p>
<p>#!/bin/bash<br />
#<br />
# Write by Karfield<br />
#<br />
# Free to use it!)<br />
#<br />
BING=http://www.bing.com<br />
TMPFILE=/tmp/bing.html<br />
WALLPAPER=/home/$USER/Downloads/bing.jpg<br />
echo &#8220;Try to get the BING page&#8230;&#8221;<br />
wget -q $BING -O $TMPFILE<br />
! [ -e $TMPFILE ] &amp;&amp; exit;<br />
URL=$BING$(sed -n &#8220;s/\(.*\)g_img={url\:&#8217;\([0-9a-Z?=%_-\\/\\.]*\)&#8217;\,id\(.*\)/\2/p&#8221; &lt; $TMPFILE)<br />
echo &quot;Get the picture&#039;s URL = &quot;$URL<br />
rm $TMPFILE<br />
mv $WALLPAPER{,-old}<br />
echo &quot;Download the wallpaper&#8230; &quot;<br />
wget -q $URL -O $WALLPAPER<br />
if [ -e $WALLPAPER ]; then<br />
	echo &quot;We got it, set the background&#8230;&quot;<br />
	gconftool-2 &#8211;type string &#8211;set /desktop/gnome/background/picture_filename $WALLPAPER<br />
	gconftool-2 &#8211;type string &#8211;set /desktop/gnome/background/picture_options zoom<br />
	gconftool-2 &#8211;type string &#8211;set /desktop/gnome/background/primary_color black<br />
fi</p>
<p>You can save the code as update_bing_wallpaper.sh, don&#039;t forget to change the file mode as &quot;u+x&quot;. And run it to change your background.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajay</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-412</link>
		<dc:creator>ajay</dc:creator>
		<pubDate>Mon, 27 Sep 2010 17:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-412</guid>
		<description>Hey,
I modified this script to get &#039;Photo of the day&#039; from National Geographic. You can find the script here:
http://ajaysrinivasan.blogspot.com/2010/09/php-script-out-of-blue.html</description>
		<content:encoded><![CDATA[<p>Hey,<br />
I modified this script to get &#8216;Photo of the day&#8217; from National Geographic. You can find the script here:<br />
<a href="http://ajaysrinivasan.blogspot.com/2010/09/php-script-out-of-blue.html" rel="nofollow">http://ajaysrinivasan.blogspot.com/2010/09/php-script-out-of-blue.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orjanv</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-395</link>
		<dc:creator>orjanv</dc:creator>
		<pubDate>Thu, 18 Mar 2010 09:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-395</guid>
		<description>after uppacking the tar.gz, i would recommend to run this on the .php file:

sed &#039;s/centered/zoom/g&#039; -i bing_wallpaper.php

in order to set the wallpaper fullscreen, since the images from bing.com is pretty small compared to the monitors used today. Even on netbooks.</description>
		<content:encoded><![CDATA[<p>after uppacking the tar.gz, i would recommend to run this on the .php file:</p>
<p>sed &#8216;s/centered/zoom/g&#8217; -i bing_wallpaper.php</p>
<p>in order to set the wallpaper fullscreen, since the images from bing.com is pretty small compared to the monitors used today. Even on netbooks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wars of Whales</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-394</link>
		<dc:creator>Wars of Whales</dc:creator>
		<pubDate>Mon, 15 Mar 2010 08:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-394</guid>
		<description>isn&#039;t PHP so amazing... too bad it won&#039;t be around much longer :)</description>
		<content:encoded><![CDATA[<p>isn&#8217;t PHP so amazing&#8230; too bad it won&#8217;t be around much longer <img src='http://spsneo.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YSLim</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-344</link>
		<dc:creator>YSLim</dc:creator>
		<pubDate>Fri, 21 Aug 2009 06:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-344</guid>
		<description>Great job! I didn&#039;t thought of using PHP&#039;s wget to retrieve the wallpaper and set it through system function...</description>
		<content:encoded><![CDATA[<p>Great job! I didn&#8217;t thought of using PHP&#8217;s wget to retrieve the wallpaper and set it through system function&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramnath</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-338</link>
		<dc:creator>Ramnath</dc:creator>
		<pubDate>Sun, 09 Aug 2009 20:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-338</guid>
		<description>Nice job. Likd it.</description>
		<content:encoded><![CDATA[<p>Nice job. Likd it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mugunth</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-323</link>
		<dc:creator>Mugunth</dc:creator>
		<pubDate>Fri, 17 Jul 2009 22:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-323</guid>
		<description>Wow..! I never thought in PHP it would be just 5 lines!!! Thanks for visiting my blog and thanks for the port...</description>
		<content:encoded><![CDATA[<p>Wow..! I never thought in PHP it would be just 5 lines!!! Thanks for visiting my blog and thanks for the port&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitin</title>
		<link>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/comment-page-1/#comment-322</link>
		<dc:creator>nitin</dc:creator>
		<pubDate>Fri, 17 Jul 2009 20:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=86#comment-322</guid>
		<description>cool man!! I liked it but never thought of porting it to the desktop..</description>
		<content:encoded><![CDATA[<p>cool man!! I liked it but never thought of porting it to the desktop..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

