rynote / rpipb

Photobooth with a Raspberry Pi
0 stars 0 forks source link

Isn't running on startup... #1

Closed rynote closed 10 years ago

rynote commented 10 years ago

Perhaps the interrupt handler doesn't like being run in the bg?

rynote commented 10 years ago

I think the problem was the startup script simply runs 'python photobooth.py' and since we removed the polling loop it quits after one run. A cheap fix would be to launch it with python -i so the python process doesn't quit...

rynote commented 10 years ago

...yeah.. that didn't work. I think i'm going to have to see if running it as a service / daemon solves it. Or, i'll try just putting a dumb loop in there with time.sleep(1)

rynote commented 10 years ago

A short loop with time.sleep(.1) seems to work and the responsiveness to button press is better for user feedback. I'm closing this issue.