Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-12-2010, 05:06 PM   #1
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
calibre option --start-in-tray does not work

Hello! I have been using Calibre to download various newspapers and magazines that I read and then automatically email them to my kindle. Beautiful feature! Today I decided that instead of running calibre once a day to get all this done, I would just keep it running all the time. I won't even have to bother with it unless I am adding a book to my bloated collection Unfortunately, the --start-in-tray option is not working. When it launches I get a blank window until I quit calibre and manually launch it. I have attached a screenshot of what this looks like after a clean boot (or a launch using the same options from the terminal).

Note: I am on a Linux Ubuntu 10.04 system using Gnome as my desktop environment on an HP dv7t quad edition computer with an x64 processor.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	404
Size:	495.0 KB
ID:	58116  
lunixer is offline   Reply With Quote
Old 09-12-2010, 05:13 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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
have you enabled the system tray icon in preferences?
kovidgoyal is offline   Reply With Quote
Advert
Old 09-12-2010, 05:13 PM   #3
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
have you enabled the system tray icon in preferences?
I have.
lunixer is offline   Reply With Quote
Old 09-12-2010, 05:17 PM   #4
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
works on my KDE desktop. Probably some toxic interaction between Qt and GNOME. Any other GNOME users care to try it and comment?
kovidgoyal is offline   Reply With Quote
Old 09-12-2010, 05:20 PM   #5
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
works on my KDE desktop. Probably some toxic interaction between Qt and GNOME. Any other GNOME users care to try it and comment?
Should I have some Qt libraries installed? Maybe I don't have some necessary dependency? I installed this using your script so I could get the latest version so perhaps Synaptic didn't resolve all of the dependencies.
lunixer is offline   Reply With Quote
Advert
Old 09-12-2010, 05:21 PM   #6
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
no, the calibre installer includes all needed binaries.
kovidgoyal is offline   Reply With Quote
Old 09-12-2010, 05:40 PM   #7
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
I have a similar experience, and I'm not using Gnome, I'm using XFCE (Xubuntu 10.04).

I have Calibre set to launch on boot, and it uses the --start-in-tray parameter. I find that instead of having to restart Calibre, I just have to click on the tray icon. Then Calibre shows the contents of the window.

A secondary bit of strangeness: when Calibre shows the window, I get a tiny, little, decorationless book-browser window in the upper-left corner of the main window (I chose an external window in preferences.) If I click on the book-browser button, it becomes full size and behaves properly thereafter.

I don't reboot very often, so it doesn't bother me frequently enough to have brought it up.
capidamonte is offline   Reply With Quote
Old 09-12-2010, 05:44 PM   #8
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm not going to install a new desktop environment just to debug this issue, so unless some other calibre developer picks it up, I'm afraid you'll have to live with it.
kovidgoyal is offline   Reply With Quote
Old 09-12-2010, 09:55 PM   #9
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
I'm not going to install a new desktop environment just to debug this issue, so unless some other calibre developer picks it up, I'm afraid you'll have to live with it.
Here is the terminal output when I launch it:

This is launching it after the computer has already started up but when calibre is closed and completely exited. Can you tell anything from this?

Code:
ross@ross-laptop:~$ calibre --start-in-tray
/home/ross/.gtkrc-2.0:1: Unable to find include file: ".gtkrc-2.0-gnome-color-chooser"
Is there any other debug information that could help us solve the problem?

EDIT: I also reinstalled gnome-color-chooser. Same message. Then I did a complete uninstall and scrubbed all config files. Same message.

Last edited by lunixer; 09-12-2010 at 10:25 PM. Reason: add more info
lunixer is offline   Reply With Quote
Old 09-12-2010, 10:56 PM   #10
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not really. This isn't something that's happening at the calibre level (calibre's system tray code is common to windows, osx and linux), its some interaction between the Qt toolkit and the WM used by GNOME/Xfce. Debugging it is not going to be trivial.
kovidgoyal is offline   Reply With Quote
Old 09-13-2010, 12:34 PM   #11
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I just installed Ubuntu in a VM and --start-in-try is working for me there as well.
kovidgoyal is offline   Reply With Quote
Old 09-13-2010, 02:50 PM   #12
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
Hmmm. Compiz?

I don't think that it's Compiz, but I am using it. I start with xfwm4 and then do a simple startup compiz --replace via autostart that may be happening before Calibre launches.

(I've tried several ways to make Compiz start instead of xfwm4, but none of them worked. XFCE seems to insist, somehow.)
capidamonte is offline   Reply With Quote
Old 09-13-2010, 03:12 PM   #13
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try metacity --replace

and then see if you can reproduce it
kovidgoyal is offline   Reply With Quote
Old 09-13-2010, 04:32 PM   #14
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
A small test

Okay, I installed metacity. I do not have the rest of Gnome installed.

For this test, I'm quitting Calibre, then changing window managers, then launching Calibre with the --start-in-tray switch. (And only that switch.) I also click the book-browser button once the window is visible so that the tiny window is restored to full size and doesn't, perhaps, save its size when Calibre exits.

Under compiz: Launching calibre produces a tray icon and a blank window. Clicking the tray icon shows the window, and the tiny book-browser window in the upper left corner.

Under xfwm4: the same.

Under metacity: Launching calibre produces a tray icon, no window. Clicking the tray icon shows the window, and the tiny book-browser window in the upper left corner. However, for a moment, the window is blank before it changes to visible.

Under all three window managers, launching Calibre without the --start-in-tray switch works as expected: visible window, visible tray icon and no tiny book-browser.

Hope that helps somewhat.
Attached Thumbnails
Click image for larger version

Name:	Compiz-Blank.png
Views:	356
Size:	17.3 KB
ID:	58146   Click image for larger version

Name:	Compiz-Click-Tray-Icon.png
Views:	323
Size:	150.3 KB
ID:	58147   Click image for larger version

Name:	xfwm4-Blank.png
Views:	332
Size:	9.8 KB
ID:	58148   Click image for larger version

Name:	xfwm4-Click-Tray-Icon.png
Views:	344
Size:	187.4 KB
ID:	58149   Click image for larger version

Name:	Metacity-Click-Tray-Icon.png
Views:	357
Size:	143.4 KB
ID:	58150  
capidamonte is offline   Reply With Quote
Old 09-13-2010, 04:51 PM   #15
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by capidamonte View Post
Okay, I installed metacity. I do not have the rest of Gnome installed.

For this test, I'm quitting Calibre, then changing window managers, then launching Calibre with the --start-in-tray switch. (And only that switch.) I also click the book-browser button once the window is visible so that the tiny window is restored to full size and doesn't, perhaps, save its size when Calibre exits.

Under compiz: Launching calibre produces a tray icon and a blank window. Clicking the tray icon shows the window, and the tiny book-browser window in the upper left corner.

Under xfwm4: the same.

Under metacity: Launching calibre produces a tray icon, no window. Clicking the tray icon shows the window, and the tiny book-browser window in the upper left corner. However, for a moment, the window is blank before it changes to visible.

Under all three window managers, launching Calibre without the --start-in-tray switch works as expected: visible window, visible tray icon and no tiny book-browser.

Hope that helps somewhat.


Very helpful. How would I go about permanently replacing compiz with metacity? I don't use any of the compiz animations. I only have it on because I hotkey most of the functions that I frequently use.
lunixer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start in Tray in Windows 7 geneaber Calibre 12 11-07-2015 11:24 PM
A little newb help? Launch Calibre via batch file with "Start in tray" modifier jphphotography Calibre 7 01-04-2011 11:49 AM
Exiting calibre - linux - no system tray? chlorine Calibre 6 08-09-2009 12:30 PM
Start Calibre in tray? Acey Calibre 5 06-04-2009 04:10 PM
--breadth-first option in calibre GUI osmo79 Calibre 1 05-30-2009 11:45 AM


All times are GMT -4. The time now is 05:07 PM.


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