I am looking to launch a program when an SD card is inserted (as the pop-up window appears asking me what to do with the opening of this SD card).
I do not know if the code is good ?
I do not know where to position the rule?
Code: Select all
#Start action when the SD carde is connected KERNEL=="mmcblk0*", run+="/home/pi/Desktop/start_command.py"
Thank you for your help./lib/udev/rules.d/10-Start-SD.rules