diff -Nru unity-scope-cities-0.1/debian/bzr-builder.manifest unity-scope-cities-0.1/debian/bzr-builder.manifest --- unity-scope-cities-0.1/debian/bzr-builder.manifest 2012-04-27 19:07:07.000000000 +0000 +++ unity-scope-cities-0.1/debian/bzr-builder.manifest 2012-05-02 21:43:04.000000000 +0000 @@ -1,2 +1,2 @@ -# bzr-builder format 0.3 deb-version {debupstream}-0~14 -lp:~davidc3/onehundredscopes/cities-precise revid:davidc@framli.eu-20120427180039-42eo00mzq0154hhg +# bzr-builder format 0.3 deb-version {debupstream}-0~15 +lp:~davidc3/onehundredscopes/cities-precise revid:davidc@framli.eu-20120502190500-hjs57qjikfcolul7 diff -Nru unity-scope-cities-0.1/debian/changelog unity-scope-cities-0.1/debian/changelog --- unity-scope-cities-0.1/debian/changelog 2012-04-27 19:07:07.000000000 +0000 +++ unity-scope-cities-0.1/debian/changelog 2012-05-02 21:43:04.000000000 +0000 @@ -1,8 +1,8 @@ -unity-scope-cities (0.1-0~14~precise1) precise; urgency=low +unity-scope-cities (0.1-0~15~precise1) precise; urgency=low * Auto build. - -- Launchpad Package Builder Fri, 27 Apr 2012 19:07:07 +0000 + -- Launchpad Package Builder Wed, 02 May 2012 21:43:04 +0000 unity-scope-cities (0.1) oneiric; urgency=low diff -Nru unity-scope-cities-0.1/src/unity-scope-cities unity-scope-cities-0.1/src/unity-scope-cities --- unity-scope-cities-0.1/src/unity-scope-cities 2012-04-27 19:07:06.000000000 +0000 +++ unity-scope-cities-0.1/src/unity-scope-cities 2012-05-02 21:43:04.000000000 +0000 @@ -22,13 +22,14 @@ import socket, urllib, urllib2, simplejson import locale import os +from PIL import Image socket.setdefaulttimeout(1) BUS_NAME = "net.launchpad.scope.information.cities" +CACHE = "%s/unity-scope-cities" % GLib.get_user_cache_dir() - -if not os.path.isdir('/tmp/unity-scope-cities'): - os.makedirs('/tmp/unity-scope-cities') +if not os.path.isdir(CACHE): + os.makedirs(CACHE) locale.setlocale(locale.LC_NUMERIC, '') global session_locale @@ -129,7 +130,7 @@ hours = int(comment.split(':')[0]) minutes = int(comment.split(':')[1]) - from PIL import Image + clock_back = Image.open("/usr/share/unity/lenses/utilities/clock_empty.png") clock_hours = Image.open("/usr/share/unity/lenses/utilities/clock_hours.png") clock_minutes = Image.open("/usr/share/unity/lenses/utilities/clock_minutes.png") @@ -139,9 +140,9 @@ i clock_back.paste(clock_hours, (0, 0), clock_hours) clock_back.paste(clock_minutes, (0, 0), clock_minutes) - clock_back.save('/tmp/unity-scope-cities/%s.png' % comment) + clock_back.save(CACHE+'/%s.png' % comment) - model.append('', '/tmp/unity-scope-cities/%s.png' % comment, 1, "text/html", comment, '', '') + model.append('', CACHE+'/%s.png' % comment, 1, "text/html", comment, '', '')