I have a USB key that contains my keepass2 password database and I'd like to perform some actions when it is plugged into my computer, namely:
- Auto-mount it to some specific location
- When the mounting is done properly, launching keepass2 on the password database file
Simple tasks I guess, but I can't find how to do that.
I'm using Ubuntu 12.10, and it auto-mounts the device as a "media usb-key" and tries to open the images on it (even though there are none).
What is the best way to do that and to disable the ubuntu auto-mounting (so it doesn't conflict) ?