laurentalacoque / TouchSelfie-extended

Open Source Photobooth based on the official Raspberry Pi 7" Touchscreen
55 stars 33 forks source link

Autodetect plugged-in usb keys and automatically output images in these #68

Closed laurentalacoque closed 5 years ago

laurentalacoque commented 5 years ago

It would be great for TouchSelfie to automatically detect plugged-in usb keys, lookup for a /TouchSelfiePhotos directory and automatically add photos to /TouchSelfiePhotos/ directory

laurentalacoque commented 5 years ago

The pi seems to automount usb keys in /media/pi directory.

For example, using a KINGSTON usb key, I have the following directories:

It could be possible to detect hotplugged USB keys by traversing the /media/pi/... directories