~lore-mattei/onehundredscopes/shotwell-precise

« back to all changes in this revision

Viewing changes to src/unity-scope-shotwell

  • Committer: David CallĂ©
  • Date: 2012-01-09 00:22:29 UTC
  • Revision ID: davidc@framli.eu-20120109002229-d9h82283eszvk9eo
Backup earlier

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import pyexiv2
26
26
import shutil
27
27
 
 
28
shotwell_db = "/home/"+ os.getenv('USER') +"/.shotwell/data/photo.db"
 
29
shutil.copy2(shotwell_db, shotwell_db+'_backup')
 
30
print "Shotwell database backup: OK"
28
31
 
29
32
BUS_NAME = "net.launchpad.scope.image.shotwell"
30
33
 
111
114
                #Check the db path
112
115
                shotwell_desktop = "/usr/share/applications/shotwell.desktop"
113
116
#               if os.path.exists(shotwell_desktop):
114
 
 
115
117
                shotwell_db = "/home/"+ os.getenv('USER') +"/.shotwell/data/photo.db"
116
 
                shutil.copy2(shotwell_db, shotwell_db+'_backup')
117
 
 
118
118
                if os.path.exists(shotwell_db):
119
119
                        conn = sqlite3.connect(shotwell_db)
120
120
                        # Initiate cursors