Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2013, 01:23 PM   #1
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 261
Karma: 2121470
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
Calibre restart surprise

I recently had this little surprise upon importing a book and restarting calibre. The steps were:

1. I clicked on a newly downloaded .epub in my file manager, which I have configured to launch calibre and import the .epub into my "originals" library. The specific command is: "calibre --with-library=/home/john/Calibre/Originals"

2. A few minutes later, with calibre still running, I installed a plugin (Find duplicates). After installation, a dialog appears prompting me to restart calibre - I clicked the restart button.

3. Upon restarting, calibre then imports the .epub from step 1 a second time.

I'm guessing this happened because calibre restarted with the identical, full command line it was originally started with (to import that .epub). I certainly don't expect this to be a high-priority bug (if it is considered a bug at all). As someone who's developed software, this has the feel of one of those "bugs" that, if fixed, the fix will end up cause worse bugs that the one it fixed.
Section8 is offline   Reply With Quote
Old 07-27-2013, 04:26 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Indeed, when restarting calibre the command line is re-used, which can cause a re-import if you started calibre with a book path. Unfortunately, there's no really robust way around this. One could, I suppose, try to detect if one of the arguments would cause a re-import, but that is not possible to maintain robustly over time as calibre changes. Re-using the command line is deliberate since many of the options modify the way the GUI behaves.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Calibre have to restart the computer every time it updates? qkflies Calibre 17 12-21-2012 11:15 AM
after restart calibre the search is gone salines Calibre 2 11-15-2011 02:34 AM
Reader not showing up until Calibre restart Stingo Calibre 0 03-22-2009 10:54 PM
News from Calibre causes restart booot Calibre 4 02-28-2009 06:26 PM


All times are GMT -4. The time now is 11:14 PM.


MobileRead.com is a privately owned, operated and funded community.