![]() |
#1 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Help with plugin writing
I'm playing around with writing a plugin (I can get a basic script to run) but I was wondering how I can get access to the name of the mount point used by my device once Calibre mounts it. i.e. what code do I need to return the string that gives say "/media/Kindle" which is where it mounts for me?
I probably need to spend a bit more time looking at other plugins, though I haven't seen any that do this - if you know of any or code in Calibre that gives an example I'd appreciate the pointer. Maybe I should start with something simpler ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.gui.device_manager.connected_device._main_pre fix
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Wow, was I offbase. Thanks! Too much reading of USBS device methods in the API and source...
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using a plugin | jrmckins | Plugins | 3 | 12-12-2010 11:48 AM |
Writing an interface action plugin | kiwidude | Plugins | 21 | 11-11-2010 04:11 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
plugin iRexDR800S | MarkNL | Plugins | 2 | 02-09-2010 03:51 AM |
Referencer plugin | IanHelgesen | iRex | 6 | 12-22-2008 09:24 PM |