derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.52k stars 159 forks source link

signal for rescanning folders #117

Open mscalora opened 11 years ago

mscalora commented 11 years ago

It would be nice if feh would rescan folders for slideshows when it receives a certain signal. I've created a digital photo frame type device using a Raspberry Pi and and old LCD monitor that updates from the internet using rsync but I can't find a way to get feh to show the new images except by killing it and rerunning. I'm working around the flashing of the desktop durring relaunch but a a signal based rescan would be very handy. BTW, thanks for a great tool.

skinner33 commented 11 years ago

The --reload option should handle that.

Although a reload of a provided filelist is experimental according to documentation, but doesn't work for me at all.

I added a option for reloading of the filelist which is what i need: skinner33/feh@6a5fca24f1afa32a7b467980197dcf5042c1dd03

jamesporritt commented 11 years ago

skinner33, this is just what I've been looking for! Works great for me - hope this is merged to the main branch.

chrisfromredfin commented 9 years ago

I know this has been a while but I manually applied code like this to the latest feh from source and it works for me - incidentally for the exact same reasons as mscalora -- a Rasperry Pi picture frame that gets pictures from rsync, and I wanted it to show new ones that come in without a restart.

This option doesn't work if you ALSO specify the experimental -R - so I just removed that and use this instead.

quantum8 commented 9 years ago

was this code committed @chrisfromredfin? I'm in the same boat at the moment and can't get it to reload in raspbian!

mscalora commented 9 years ago

It (my modification) is commited in https://github.com/mscalora/feh but not the root project, you can pull from there and build it.

You can also get the ARM binary that will run on a pi from: https://github.com/mscalora/cdpf-client in the bin folder, I renamed my custom version fehplus.

kill -SIGURG pid

will trigger a reload.

-Mike

On Thu, Mar 19, 2015 at 4:29 PM, quantum8 notifications@github.com wrote:

was this code committed @chrisfromredfin https://github.com/chrisfromredfin? I'm in the same boat at the moment and can't get it to reload in raspbian!

— Reply to this email directly or view it on GitHub https://github.com/derf/feh/issues/117#issuecomment-83786708.

quantum8 commented 9 years ago

thanks @mscalora, I'll give it a go later on tonight!

quantum8 commented 9 years ago

Seems to work pretty decently @mscalora. I did find a bug though; the app quits when using a filelist that hasn't changed after sending the signal.

I wrote a script to check if the list has changed to try avoid this situation however!

mscalora commented 9 years ago

I have not run into that, I don't use a filelist, I just use a directory path and let feh look for the files it likes. I have noticed that feh closes if the directory is empty (of files it likes) so that might be related, I think this is intended behaviour. The logic for detecting an empty dir might have a bug that causes your issue.

My options are (a few are ones I added like --center-info --autofit-info that have not been pulled in)

fehplus -Fzpr --hide-pointer -D --fontpath --center-info --autofit-info --font --info=

-Mike On Mon, Mar 23, 2015 at 4:26 PM, quantum8 notifications@github.com wrote: > Seems to work pretty decently @mscalora https://github.com/mscalora. I > did find a bug though; the app quits when using a filelist that hasn't > changed after sending the signal. > > I wrote a script to check if the list has changed to try avoid this > situation however! > > — > Reply to this email directly or view it on GitHub > https://github.com/derf/feh/issues/117#issuecomment-85230760.