This is how the pretend_usb_connect_and_unconnect script is supposed to work:
- the device must NOT be connected via USB
- run the script
- select quickly! (or increase the sleep value in the script) "connect"
- wait until the pop up closes, the "connected and charging" message appears, and disappears, ...
I just tested this again by downloading a file from
www.gutenberg.org via wifi, then starting nickel and running the script.
If nickel fails for some reason to read new files into the database (this can also happen if you use it the regular way), nickel might refuse to read them at further trials too. Touching those files helps (sometimes?).