#!/bin/sh
# https://superuser.com/questions/211561/loop-pictures-from-a-folder-and-display-fullscreen-slideshow
# It's better to adjust gthumb to "Fit to window" in preferences.
# Image Viewer(eog) could do the same job as gthumb, if in full screen mode.
# use absolute path instead of relative path in case something went wrong
test_img_path="/path/to/test.jpeg"
img_folder_path="/path/to/testdir_with_images"
while true ; do for i in `find $img_folder_path -name "*.jpeg"` ; do cp "$i" $test_img_path ; echo $i ; sleep 5 ; done ; done