HD Install :: invisible mouse & auto start program
you can have cron call a script to start qiv if it is not currently running. in /opt/crontab write something like this:
Code Sample
* * * * * * /home/dsl/autostart.sh > /dev/null &
In the file autostart.sh have something like:
Code Sample
#!/bin/bash PROCESS=`pgrep qiv` if [ "$?" -ne "0" ]; then qiv -o black -m -s -r -d 2 /path/to/images/* & fi
The crontab setup will run the script every minute. For more info on cron see the man page or do a search on cron.
Though if you are getting a GDK error then qiv probably won't run. It may require gtk2 if you don't already have it.You might consider using a different image viewer if qiv needs some extra libs. The gqview.uci extension doesn't require anything extra, and it has a built-in slideshow feature. The image quality is slightly lower than the more recent Gtk2 versions of gqview, but it is MUCH lighter and faster.
original here.