Comment 0 for bug 1206687

Revision history for this message
Matthieu Baerts (matttbe) wrote : Calibre has a .destkop file and the main binary named 'calibre' but the class of the window is 'Calibre-gui'

Hello,

It seems that Calibre's launcher is named 'calibre.desktop' but when you launch Calibre GUI, you can see that Calibre window's class is 'Calibre-gui' and not 'Calibre'. (according to `xprop`)

It's maybe a detail but if the name of the class and the launcher are different, it's harder for a taskbar manager (a shell, a panel, a dock, etc.) to make a link between them.

In the source code of Calibre, I see that it should produce a launcher named 'calibre-gui.desktop': https://github.com/kovidgoyal/calibre/blob/master/src/calibre/linux.py#L697
But it seems that Debian/Ubuntu packages are using their own launcher: https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/calibre/saucy/view/head:/debian/local/calibre.desktop

Is it possible to use the upstream launcher or rename it? (note that it's also maybe better to have an icon with the same name as the launcher => https://github.com/kovidgoyal/calibre/blob/master/src/calibre/linux.py#L856 )