View Single Post
Old 09-05-2022, 01:42 AM   #1
Leseratte_10
Groupie
Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.
 
Posts: 183
Karma: 3587000
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
Renaming a Plugin

Hello everyone,

I've got a quick question, is there a good way to rename an existing plugin?
My ACSM Input Plugin used to be called "DeACSM" for the first couple versions, but then I wanted to re-name it to "ACSM Input" so it's named more like all the other file-type plugins (KFX Input, DOC Input, KePub Input, ...).

I found that the plugin index thread contains a section about deprecated and renamed plugins, but I don't fully understand that:

Quote:
The following plugins should be removed from your system as they have been superseded by newer plugins above or other reasons listed. They are listed here both for your interest and for use by the Calibre Plugin Updater which will advise you to remove these if they are installed (and automatically uninstall them if you install their replacement).
So if I mark the old name "DeACSM" as deprecated and put the plugin onto that list with a new name ("ACSM Input"), A) How does Calibre know to automatically uninstall the old plugin upon installation of the new one?, and B) is there a way to get this to work automatically?

Right now it looks like if I were to do that, then everyone who is currently using my plugin would get it auto-removed and would need to search for and redownload it under the new name through the plugin search. I have not found a way to mark it as "hey, ACSM Input is just the new name for DeACSM, just replace it".

Does such a functionality exist? What's the best way to rename a plugin without causing issues for users?

EDIT: Sorry for this file attachment, I'm just testing something with the calibre plugin updater, please ignore ...
Attached Files
File Type: zip calibre-plugin.zip (471.5 KB, 243 views)

Last edited by Leseratte_10; 09-05-2022 at 11:58 AM.
Leseratte_10 is offline   Reply With Quote