I've been researching for a while on how to best detect an CAN-USB device being connected and disconnected from a Linux platform (Ubuntu 12.04), but it has been slow progress. The best advice I can find out there suggests to use dbus to detect the insert/removal events. I'm in the process of compiling and installing all necessary libraries for Python 3.3 (which supports CANbus), but its taking quite a while to get all packages and libraries installed due to the sheer number of dependencies.
Can anyone recommend the simplest and easiest way to detect device insert/removal (particularly CAN-USB devices) using standard Linux libs/APIs? Is dbus the way to go?