I'm using KoboCloud to sync with Google Drive and AutoShelf to organize the content. It works to manually tap on the sync icon, wait a while, and then connect/disconnect USB to trigger AutoShelf, but I'd like to have a single action from NickelMenu to cause all this to happen. I currently have the following:
But this does not appear to work. One thing I've noticed is the two commands run in immediate succession, rather than the second waiting for the first to finish ("succeed"). But even apart from the lack of sequential delay, it doesn't seem like either of these commands actually causes the right actions to occur.
Can anyone suggest how to accomplish this?
Code:
menu_item :main :Cloud Rebuild :cmd_spawn :/usr/local/kobocloud/get.sh
chain_success :cmd_spawn :/usr/local/AutoShelf/autoshelf.sh
Can anyone suggest how to accomplish this?