Customising the ‘Open With’ Menu
Each row in the grid in the plugin configuration dialog represents a possible menu item to include in your menu. Depending on the operating system platform that you are running Calibre on you will see a different set of default applications included with the plugin for your convenience with default application installation paths. Or you can add your own (or edit the existing ones) as required.
The following table details each column in the grid. You can double-click any cell in the grid to edit its value.
Active |
Items ticked in this first column will appear in your menu. A small selection of menu items have been ticked as a default selection to get you started. |
Menu Text |
The name to appear in the menu. Leave this blank if you want a separator row to appear between your menu items (other columns will be ignored). You must have a value in this column before you can edit the later columns. Erasing the value in this column will clear the other columns (as not valid for separator rows) |
Submenu |
An optional sub-menu name to display this menu item within. If you have many menu items you may find it more manageable to group them within sub-menus. So for instance typing Amazon into this column for all the Amazon rows in the grid will ensure they are displayed within an “Amazon” sub-menu when the “Search the Internet” menu is expanded. |
Format |
The format of the selected book this application should be passed on the command line, such as EPUB, MOBI etc. A special value of COVER will instead allow passing the filename of the cover.jpg associated with the book, such as a paint program for cropping etc. |
Image |
The filename of an image icon to display next to your menu item, leave blank for no image. Images for the supplied menu items are included in the plugin zip file. To add your own image files, choose the Add New Image... menu item within the combobox. |
Application Path |
The physical file path to the executable application for this menu item. Included are the default paths for various applications on Windows 32-bit and 64-bit operating systems. If you use different versions of the applications or a different operating system then you must edit these to suit your installed locations. Double click on this cell to bring up a file chooser dialog allowing you to select the application to execute. |
Args |
Optional command line arguments that are to be passed along with the filename to the application. Multiple arguments should be comma separated. E.g. an application requiring command line switches of “-foo 100 –bar” on the command line should have “–foo 100,-bar” specified in this column (without quotes). Args specified here will be insert before the filename i.e. {Path to application} [args] {Path to book format or cover} IMPORTANT for OSX Users: Command line arguments for OSX applications are NOT currently supported and any specified here will be ignored. |
The buttons available perform the following functions:
In addition there is a context menu available within the grid, offering these options:
As of Calibre 0.7.34 it became no longer necessary to copy the image files within the plugin zip to a separate resources folder, as was the case with earlier versions of plugins. Instead the images are actually read by Calibre each time it starts up from its installed copy of the plugin zip file.
If however you wish to customise the menus with your own images, these should be placed in a \resources\images folder within the Calibre configuration folder as described in the Calibre help. You can find this directory by using:
Preferences -> Miscellaneous -> Open calibre configuration directory
Alternatively you can use the Open images folder context menu option available in the menu items grid on the configuration dialog for this plugin.
It is quite probable you do not already have the required resource subfolder. If that is the case create the \resources\images subdirectories yourself.
You have three choices for how you add custom .png images for your menu items. Of course you can manually source them and drop them into the images folder completely outside of Calibre.
However the easiest way is to expand the Image column dropdown on the configuration dialog for the plugin and select the Add New Image... menu option. This will show a configuration dialog allowing you to source the image:
Menu items are persisted into a “open_with.json” file located within the calibre configuration directory for plugins (see above). So if you backup your Calibre configuration directory these settings will be included. Along with all your other Calibre preferences.
You may also chose to use the Export... right click feature to save your settings in a .owip file that can be re-imported at any time.
For any problems, issues or obtaining the latest version of this plugin, please refer to the MobileRead Open With Plugin Thread.