PDA

View Full Version : Script to autorun gtkam for digital camera access?


virusdoc
2004-08-16, 09:11 PM CDT
Is it possible to write a script that automatically launches gtkam when the system detects my Canon Digital Rebel being connected to a USB port? I'm trying to make our new Linux home system as user friendly for my wife (who is used to XP Pro) as possible. I don't mind command line terminals and starting things manually, but she does.

I've noticed in the hardware browser that when the camera is connected it shows up under "system devices," so it seems like there ought to be a way to get this system notification associated with an application launch. If this is a stupid question, please tell me why. I'm on the steepest part of the Linux learning slope right now. :)

tashirosgt
2004-08-17, 08:53 AM CDT
I use my Olympus C700 from the command line, but since you didn't get any other replies, let me point you to
the article:
http://home.gagme.com/greg/linux/usbcamera.php
This suggests that the way one ought to get things automatically mounted is to use the built-in autmounting features configured by /etc/auto.master. At least the article will give you some ideas for further research.

A script woud probably have to cat some file in the /proc directory and look for the camera. That would mean the camera was already mounted by the system!

virusdoc
2004-08-17, 10:49 AM CDT
Great--thanks! I will read up. This is the kind of resource I was looking for, but apparently I wasn't googling efficiently. :)