View Single Post
Old 02-11-2017, 11:48 AM   #57
anarcat
Connoisseur
anarcat doesn't litteranarcat doesn't litter
 
anarcat's Avatar
 
Posts: 83
Karma: 192
Join Date: Jul 2013
Location: Planet Ocean
Device: Kobo Glo HD, Onyx Boox Note Pro 2, Samsung Galaxy Tab S5e, Pixel 4a
thanks so much for all your research and feedback! I'm not sure where I stand with the database stuff - it seems to me hairy to start messing around in there...

let me know if i should change the summary to point to a solution, nevertheless...

Right now, I am still using the "fake-usb-connect" hack that pops up a dialog asking the user confirmation. it's ugly, but it works, but technically (the library is re-read) but also, and more interestingly, from a usability perspective: I tell people (in the documentation and in person) that it's a hack, and they just need to tap that and things will work. so it's kind of okay.

my next hurdle, at this point, is to fine-tune the *run* trigger, ie. when do i run my sync program. right now it triggers on any udev aactivity:

Code:
    KERNEL=="eth*", RUN+="/usr/local/bin/wallabako-run"
    KERNEL=="wlan*", RUN+="/usr/local/bin/wallabako-run"
... which is not so great. first, it also runs when the connection goes down (which is silly) and second, it requires the user to "turn wifi off and on again" which is klunky. the first reaction of the user, in my test here, was to tap that neat little "sync" tile on the home screen - is there a way to hook into that?
anarcat is offline   Reply With Quote