global_db[old_filename_key] = global_db[filename_key]
global_db[filename_key] = image_name
+ program_options = ["xli", "-onroot", "-quiet"] + \
+ ["-center", "-border", random.choice(borders), "-zoom", "auto",
+ image_name]
+
+ rc = subprocess.call(program_options)
+ if rc:
+ error("cannot execute xli!")
+
finally:
# Unlock and close the lock file
flock(lock_file, LOCK_UN)
# Flush and close the global persistent dictionary
if global_db: global_db.close()
- program_options = ["xli", "-onroot", "-quiet"] + \
- ["-center", "-border", random.choice(borders), "-zoom", "auto",
- image_name]
-
- rc = subprocess.call(program_options)
- if rc:
- error("cannot execute xli!")
-
@published
def force():
ping(force=True)