@kiwidude -
UPDATE - Ignore this whole question. I misunderstood Kovid, he's adding what I wanted to calibre's eject feature directly, so I don't need to call anything.
I don't know if you've been following this thread,
Nook STRg doesn't eject completely?, but Kovid was kind enough to make a utility program for the next version that unmounts usb devices before ejecting them.
My intention is to make my SmartEject PI (configurably) call it.
Rather than reinvent the wheel, would you mind if I had SmartEject call Open With, since it already knows how to run programs on all the OSes? Something like:
Code:
ow_plugin = self.gui.iactions['Open With']
ow_plugin.launch_app("path_to_install\calibre-eject.exe","g h i","")
Except with configurable values, of course.
Initial testing seems like it works fine.