|
|
#61 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,070
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
Thank you very much for the technical tip regarding Windows child processes. Following your advice, I've updated the plugin to version 1.2.1. Now, before launching the installer, the plugin uses taskkill to clean up any remaining instances of ebook-viewer.exe, ebook-edit.exe, and calibre-parallel.exe. This ensures the .msi installer doesn't run into "files in use" errors. I've also kept the --shutdown-running-calibre command to ensure the database closes gracefully first. Thanks for keeping an eye on this! I'm learning a lot from the comments. |
|
|
|
|
|
|
#62 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,070
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
That’s a very sharp observation. You are absolutely right—background tasks like the "Backup Default Settings" plugin or library metadata flushing need time to finish before the installer starts. To address this, I've implemented a Smart Wait Loop in version 1.2.1. Instead of a fixed delay, the plugin now actively monitors the system process list and waits until calibre.exe has completely disappeared before proceeding. This way, any pending I/O or backup operations can finish safely. Thanks for helping me make the plugin more robust! |
|
|
|
|
| Advert | |
|
|
|
|
#63 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,070
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
You're very welcome! Actually, the option to change the download folder was a suggestion from @JSWolf. After carefully analyzing the situation, I realized it was a great point and a very useful feature for those who like to keep their files organized. I always try to listen to suggestions to make the plugin as useful as possible for everyone, within the technical possibilities. Glad it’s working well for you now! |
|
|
|
|
|
|
#64 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,070
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
v1.2.1:
Improved Process Management (Windows): Based on feedback from @kovidgoyal, the plugin now proactively terminates child processes (ebook-viewer.exe, ebook-edit.exe, etc.) before launching the installer to prevent "file in use" errors. Smart Wait Loop (Windows): Following @JSWolf's observation, I've implemented a monitoring loop that waits for calibre to fully release all database locks and background tasks (like metadata flushing or settings backups) before starting the update. Enhanced Linux Experience: Better terminal handling for the restart process. The plugin now uses disown to ensure calibre restarts seamlessly after the update is finished. Internationalization: Added full translations for French and Brazilian Portuguese. Special thanks to the community members for their technical insights and testing! |
|
|
|
|
|
#65 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,482
Karma: 31000706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I've attached some screenshots - the executables that the portable launchers start are identical to the installed calibre executables, the difference is that they're loaded from a different location and some variables are set to precondition the execution environment. I have no idea if that is relevant to your plugin. Knowing you don't use Windows, I wanted to make sure that you were aware that the msi installer will not run to completion if any of the calibre executables are running from a portable install. Added: Perhaps you're not aware that 'installed calibre' and multiple copies of 'calibre portable' can coexist on the same Windows system. BR Last edited by BetterRed; Yesterday at 05:14 PM. |
|
|
|
|
| Advert | |
|
|
|
|
#66 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,420
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#67 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,070
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
Thank you for the detailed explanation and the screenshots! I now see exactly what you mean: since the executables share the same names regardless of their location, the MSI installer will trigger a conflict if any of them are active. Even though I'm on Linux, the plugin's logic for Windows actually accounts for this. It uses image name filtering (e.g., taskkill /IM calibre-parallel.exe) rather than specific file paths. This means that even if a user is running a Portable version from a different drive, the plugin will detect those processes by name, attempt to close them, and wait for them to disappear before launching the MSI. So, thanks to your observation, I can confirm that version 1.2.1 is safer than ever! |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Auto Datestamp and View | eater | Plugins | 3 | 04-08-2020 06:08 PM |
| Calibre needs an Auto-Updater | smartguy | Calibre | 30 | 01-23-2020 02:24 PM |
| Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 10:49 PM |
| Solution: Calibre AutoUpdater [Auto-Updater] | megamaniac | Calibre | 6 | 08-02-2013 09:47 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |