needs a foreground option
Submitted by Ken
Link to original bug (#686896)
Description
It would be very nice to have a -f or --foreground (or --nofork) option like gvim. Currently if you run evince *.pdf
you may get hundreds of windows popping up. This can be very slow, and on a tiling window manager can be quite unusable. Sophisticated users might try to avoid this problem by opening one file at a time. They would then put the invocation of evince is a loop.
For example in tcsh:
foreach i (*.pdf)
evince $i
end
Unfortunately, evince puts itself in the background, so the loop will immediately run hundreds of copies of evince, which is the same problem. With a -f option evince will not put itself in the background. In this case, one document will pop up and to go to the next one the user must first close the current one. This is exactly what is desired.
It is a unix convention that programs that put themselves in the background provide a mechanism to prevent this, because it is generally problematic when using these programs in shell scripts.