View Single Post
Old 09-21-2013, 05:29 PM   #199
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,999
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@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.

Last edited by JimmXinu; 09-21-2013 at 11:00 PM. Reason: Correct code snippet.
JimmXinu is offline   Reply With Quote