error("No unshown images found. Run rescan_fs.py "
"or decrease min_delay. Abort.")
+fs_encoding = xsetbg_conf.get("images", "fs_encoding")
def change(force=False):
# Use the program's file as the lock file:
current_time - min_delay)
old_shown_count = old_shown_select.count()
if old_shown_count:
- row = old_shown_select[random.randint(0, not_shown_count - 1)]
+ row = old_shown_select[random.randint(0, old_shown_count - 1)]
else:
error("No images to show found. Run rescan_fs.py "
"or decrease min_delay. Abort.")
program_options = ["xli", "-border", random.choice(borders),
"-center", "-onroot", "-quiet", "-zoom", "auto",
- row.full_name]
+ row.full_name.encode(fs_encoding)]
rc = subprocess.call(program_options)
if rc: