View Single Post
Old 01-19-2023, 06:19 PM   #1
calibrejunkie
Page Junkie Dev
calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.
 
calibrejunkie's Avatar
 
Posts: 37
Karma: 6280
Join Date: Jul 2018
Location: Earth
Device: Android Phone, Kindle, Surface Pro 3
Question Automatically place plugin icon on main toolbar when installed from batch file?

Hello,

Is it possible to automatically place a plugin's icon in the main calibre toolbar when it is installed from a batch file using "calibre-customize -a"? Or is there perhaps code that can be added to the plugin file itself to accomplish this?

Basically, I have a batch file that installs my plugin, then when calibre restarts, currently I have to manually go to prefs and move it over to the main toolbar using the UI. Of course, after that, calibre remembers so future installs always put the icon back, but I'd like to automate that process if possible so it is already on the main toolbar when calibre restarts on the first-time plugin install.

Thank you for any help you can provide!
calibrejunkie is offline   Reply With Quote