I have a C++ program that accesses USB pen drives/flash drives. It works for currently inserted flash drive. A normal C++ program doesn't execute until we run it. But I wanted the program to run automatically whenever a flash drive is inserted. How can I do that?
- Ubuntu – How to execute a file from a FAT USB drive
- Ubuntu – What happens under the hood when an USB drive is inserted
- Ubuntu – How to temporarily suspend Nautilus filesystem automounting, without making permanent changes to the system and user configuration
- Ubuntu – Ubuntu doesn’t automatically mount USB flash drive