Monochrome and other icons are missing #2559

Closed
opened 2026-02-21 16:17:06 -05:00 by deekerman · 23 comments
Owner

Originally created by @goetzc on GitHub (May 26, 2015).

Using version 3.2.0 in Arch Linux, monochrome icons for the tray icon are not installed. I don't think this is distribution specific, as Arch uses this simple script to build the package:

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr --with-qjson=system
  make
}

package() {
  cd $pkgname-$pkgver

  make INSTALL_ROOT="$pkgdir/" install
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

Also the icons for the tray icon pop up are missing.

Originally created by @goetzc on GitHub (May 26, 2015). Using version 3.2.0 in Arch Linux, monochrome icons for the tray icon are not installed. I don't think this is distribution specific, as Arch uses this simple [script](https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/qbittorrent) to build the package: ``` bash build() { cd $pkgname-$pkgver ./configure --prefix=/usr --with-qjson=system make } package() { cd $pkgname-$pkgver make INSTALL_ROOT="$pkgdir/" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } ``` Also the icons for the tray icon pop up [are missing](https://github.com/qbittorrent/qBittorrent/issues/3106#issuecomment-105675177).
deekerman 2026-02-21 16:17:06 -05:00
  • closed this issue
  • added the
    OS: Linux
    label
Author
Owner

@ngosang commented on GitHub (May 26, 2015):

This is rare. I also use Arch and it works perfectly. :S

@ngosang commented on GitHub (May 26, 2015): This is rare. I also use Arch and it works perfectly. :S
Author
Owner

@goetzc commented on GitHub (May 26, 2015):

@ngosang maybe those icons are provided by another package, some theme maybe.

@goetzc commented on GitHub (May 26, 2015): @ngosang maybe those icons are provided by another package, some theme maybe.
Author
Owner

@ngosang commented on GitHub (May 26, 2015):

With 'monochrome icons' you are referring to notification area icon?

@ngosang commented on GitHub (May 26, 2015): With 'monochrome icons' you are referring to notification area icon?
Author
Owner

@goetzc commented on GitHub (May 26, 2015):

Yes, those for 'Tray icon style'.

@goetzc commented on GitHub (May 26, 2015): Yes, those for 'Tray icon style'.
Author
Owner

@ngosang commented on GitHub (May 26, 2015):

They are included in the qBittorrent folder /src/icons/skin/. Uninstall the package and try to install the development version from sourcecode, maybe it's fixed now. https://github.com/qbittorrent/qBittorrent

@ngosang commented on GitHub (May 26, 2015): They are included in the qBittorrent folder /src/icons/skin/. Uninstall the package and try to install the development version from sourcecode, maybe it's fixed now. https://github.com/qbittorrent/qBittorrent
Author
Owner

@goetzc commented on GitHub (May 26, 2015):

Will test a the latest git code.

Do you have any qtbittorrent monochrome icons in /usr/share/icons/ or maybe in the user's icons folder?

@goetzc commented on GitHub (May 26, 2015): Will test a the latest git code. Do you have any qtbittorrent monochrome icons in /usr/share/icons/ or maybe in the user's icons folder?
Author
Owner

@goetzc commented on GitHub (May 26, 2015):

With the latest git code the program doesn't start. The monochrome icons are also not included in the generated package.

There might be something wrong with the configure script. Maybe this commit has something to do ff9a281b72 ?

@goetzc commented on GitHub (May 26, 2015): With the latest git code the program doesn't start. The monochrome icons are also not included in the generated package. There might be something wrong with the configure script. Maybe this commit has something to do ff9a281b72 ?
Author
Owner

@goetzc commented on GitHub (May 26, 2015):

Now I see there are more icons missing.
This is the tray icon pop up:
qbittorrent

@goetzc commented on GitHub (May 26, 2015): Now I see there are more icons missing. This is the tray icon pop up: ![qbittorrent](https://cloud.githubusercontent.com/assets/2220440/7824147/586b8934-03c6-11e5-918a-0dab33762a4e.png)
Author
Owner

@sledgehammer999 commented on GitHub (May 26, 2015):

Can you manually run that configure on the source and then give here the contents of the generated "conf.pri" file?
PS: I meant you should run the configure with the exact same options as in the arch build script

@sledgehammer999 commented on GitHub (May 26, 2015): Can you manually run that configure on the source and then give here the contents of the generated "conf.pri" file? PS: I meant you should run the configure with the exact same options as in the arch build script
Author
Owner

@goetzc commented on GitHub (May 27, 2015):

Sure, this is with the Arch build options:

# conf.pri.  Generated from conf.pri.in by configure.

PREFIX = /usr
BINDIR = /usr/bin
DATADIR = /usr/share
MANPREFIX = /usr/share/man

QMAKE_CXXFLAGS +=  -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
INCLUDEPATH += /usr/include /usr/include/libtorrent 
LIBS += -L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/lib -lz  -ltorrent-rasterbar -lboost_system  -lboost_system 

CONFIG +=  release dbus
CONFIG -=  debug nogui systemd nowebui usesystemqtsingleapplication

DEFINES +=  _FORTIFY_SOURCE=2 TORRENT_LINKING_SHARED BOOST_ASIO_DYN_LINK BOOST_ASIO_ENABLE_CANCELIO BOOST_EXCEPTION_DISABLE BOOST_ASIO_HASH_MAP_BUCKETS=1021 TORRENT_USE_OPENSSL 
DEFINES -=  WITH_GEOIP_EMBEDDED
@goetzc commented on GitHub (May 27, 2015): Sure, this is with the Arch build options: ``` qmake # conf.pri. Generated from conf.pri.in by configure. PREFIX = /usr BINDIR = /usr/bin DATADIR = /usr/share MANPREFIX = /usr/share/man QMAKE_CXXFLAGS += -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 INCLUDEPATH += /usr/include /usr/include/libtorrent LIBS += -L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/lib -lz -ltorrent-rasterbar -lboost_system -lboost_system CONFIG += release dbus CONFIG -= debug nogui systemd nowebui usesystemqtsingleapplication DEFINES += _FORTIFY_SOURCE=2 TORRENT_LINKING_SHARED BOOST_ASIO_DYN_LINK BOOST_ASIO_ENABLE_CANCELIO BOOST_EXCEPTION_DISABLE BOOST_ASIO_HASH_MAP_BUCKETS=1021 TORRENT_USE_OPENSSL DEFINES -= WITH_GEOIP_EMBEDDED ```
Author
Owner

@sledgehammer999 commented on GitHub (May 29, 2015):

IIRC, the missing icons should be embedded in the binary anyway. Later I'll try building in my debian VM and see if they're missing.

@sledgehammer999 commented on GitHub (May 29, 2015): IIRC, the missing icons should be embedded in the binary anyway. Later I'll try building in my debian VM and see if they're missing.
Author
Owner

@sledgehammer999 commented on GitHub (Jun 1, 2015):

I saw the code. Those icons are embedded in the binary.
How does arch work? Does each user build its packages or can he download binary packages? Did you download the binary package available?

When you say "monochrome icons missing" what do you mean? Is the option tools->options...->behavior->desktop->show qbittorrent in notification area->tray icon style available?

Can you do a simple compilation:

  1. Download the vanilla source from here: http://sourceforge.net/projects/qbittorrent/files/qbittorrent/qbittorrent-3.2.0/qbittorrent-3.2.0.tar.xz/download
  2. Extract in a folder and cd into it.
  3. ./configure --prefix=$HOME/qbt (or any other user-writable folder)
  4. make -jX (the numbers of cpu cores you have)
  5. make install
  6. cd to $HOME/qbt/bin
  7. ./qbittorrent

Does it still not show the icons?

@sledgehammer999 commented on GitHub (Jun 1, 2015): I saw the code. Those icons are embedded in the binary. How does arch work? Does each user build its packages or can he download binary packages? Did you download the binary package available? When you say "monochrome icons missing" what do you mean? Is the option `tools->options...->behavior->desktop->show qbittorrent in notification area->tray icon style` available? Can you do a simple compilation: 1. Download the vanilla source from here: http://sourceforge.net/projects/qbittorrent/files/qbittorrent/qbittorrent-3.2.0/qbittorrent-3.2.0.tar.xz/download 2. Extract in a folder and cd into it. 3. `./configure --prefix=$HOME/qbt` (or any other user-writable folder) 4. `make -jX` (the numbers of cpu cores you have) 5. make install 6. cd to `$HOME/qbt/bin` 7. `./qbittorrent` Does it still not show the icons?
Author
Owner

@ngosang commented on GitHub (Jun 1, 2015):

How does arch work?

It has several official repositories with binary packages. The version from repository is working for me.

  • pacman -Syu (to update the repositories and the whole system)
  • pacman -S qbittorrent (to install)
@ngosang commented on GitHub (Jun 1, 2015): > How does arch work? It has several official repositories with binary packages. The version from repository is working for me. - pacman -Syu (to update the repositories and the whole system) - pacman -S qbittorrent (to install)
Author
Owner

@goetzc commented on GitHub (Jun 1, 2015):

It has several official repositories with binary packages.

Right, and direct links for binaries are here:

i686: http://mirror.us.leaseweb.net/archlinux/community/os/i686/qbittorrent-3.2.0-1-i686.pkg.tar.xz
x86_64: http://mirror.us.leaseweb.net/archlinux/community/os/x86_64/qbittorrent-3.2.0-1-x86_64.pkg.tar.xz

@goetzc commented on GitHub (Jun 1, 2015): > It has several official repositories with binary packages. Right, and direct links for binaries are here: i686: http://mirror.us.leaseweb.net/archlinux/community/os/i686/qbittorrent-3.2.0-1-i686.pkg.tar.xz x86_64: http://mirror.us.leaseweb.net/archlinux/community/os/x86_64/qbittorrent-3.2.0-1-x86_64.pkg.tar.xz
Author
Owner

@sledgehammer999 commented on GitHub (Jun 1, 2015):

OK. Can you tell me about the rest questions? Can you also try to compile as I described above?

@sledgehammer999 commented on GitHub (Jun 1, 2015): OK. Can you tell me about the rest questions? Can you also try to compile as I described above?
Author
Owner

@goetzc commented on GitHub (Jun 1, 2015):

I did test the Arch binary, and compiled the git version myself.

When you say "monochrome icons missing" what do you mean? Is the option tools->options...->behavior->desktop->show qbittorrent in notification area->tray icon style available?

Yes, from the three options available, only the default icon is show, with the monochrome options, it shows like the tray icon pop up, an empty white sheet.

I will compile it and report back.

@goetzc commented on GitHub (Jun 1, 2015): I did test the Arch binary, and compiled the git version myself. > When you say "monochrome icons missing" what do you mean? Is the option tools->options...->behavior->desktop->show qbittorrent in notification area->tray icon style available? Yes, from the three options available, only the default icon is show, with the monochrome options, it shows like the tray icon pop up, an empty white sheet. I will compile it and report back.
Author
Owner

@sledgehammer999 commented on GitHub (Jun 1, 2015):

I truly don't know what is happening then...

@sledgehammer999 commented on GitHub (Jun 1, 2015): I truly don't know what is happening then...
Author
Owner

@sledgehammer999 commented on GitHub (Jun 1, 2015):

Hmm, can you try compiling using --with-qt5 during configure and see what happens?

@sledgehammer999 commented on GitHub (Jun 1, 2015): Hmm, can you try compiling using `--with-qt5` during configure and see what happens?
Author
Owner

@Chocobo1 commented on GitHub (Jun 1, 2015):

@goetzc, what desktop environment are you using?

@Chocobo1 commented on GitHub (Jun 1, 2015): @goetzc, what desktop environment are you using?
Author
Owner

@goetzc commented on GitHub (Jun 1, 2015):

Some good news:

  • I'm using KDE 4 with qbt compiled with Qt4.
  • Compiling qbt manually didn't seam to change anything.
  • I was wrong, the missing tray icon has a ? symbol in it. The two from the tray icon popup are empty.
  • Changing the tray icon to a monochrome one, and disabling Show qBittorrent in notification area, applying and enabling that option again did create a new tray icon (now there are two), the new one with the monochrome icon.
  • Restarting qbt with the monochrome icon selected, starts qbt with one monochrome tray icon, which works correct. Only the tray popup has missing icons.

When hovering the monochrome icon:
qbittorrent-tray-icon-monochrome-dark

When hovering the monochrome icon:
qbittorrent-tray-icon-normal

When hovering the white sheet:
qbittorrent-tray-icon-monochrome

I will compile with --with-qt5 and report back.

@goetzc commented on GitHub (Jun 1, 2015): Some good news: - I'm using KDE 4 with qbt compiled with Qt4. - Compiling qbt manually didn't seam to change anything. - I was wrong, the missing tray icon has a `?` symbol in it. The two from the tray icon popup are empty. - Changing the tray icon to a monochrome one, and disabling `Show qBittorrent in notification area`, applying and enabling that option again did create a new tray icon (now there are two), the new one with the monochrome icon. - Restarting qbt with the monochrome icon selected, starts qbt with one monochrome tray icon, which works correct. Only the tray popup has missing icons. When hovering the monochrome icon: ![qbittorrent-tray-icon-monochrome-dark](https://cloud.githubusercontent.com/assets/2220440/7919452/03af6680-085e-11e5-84b7-f53a2c316feb.png) When hovering the monochrome icon: ![qbittorrent-tray-icon-normal](https://cloud.githubusercontent.com/assets/2220440/7919483/2c8a53c6-085e-11e5-9d00-13b28bfd3836.png) When hovering the white sheet: ![qbittorrent-tray-icon-monochrome](https://cloud.githubusercontent.com/assets/2220440/7919497/53015298-085e-11e5-941a-bd30ba37a272.png) I will compile with `--with-qt5` and report back.
Author
Owner

@goetzc commented on GitHub (Jun 1, 2015):

It seams that this happens when using sni-qt Qt4 plugin, which converts QSystemTrayIcon into StatusNotifierItem. Qt5 doesn't have such plugin, but it will have built-in support for StatusNotifierItems in Qt 5.5. More info in issue https://github.com/qbittorrent/qBittorrent/issues/3076#issuecomment-104746296

So, using qbt compiled against Qt4 without sni-qt plugin or using Qt5, does change the behavior, qBt uses the old tray icon implementation which show all icons, but is not supported in KDE Plasma 5 nor in Ubuntu Unity (and maybe more).

qbt-qt5-tray

As Ubuntu comes with the sni-qt plugin (sni-qt is an optional dependency for qt4 in Arch Linux), more users should have the same problem, but it doesn't seam to be. Maybe there is something more to consider.

@goetzc commented on GitHub (Jun 1, 2015): It seams that this happens when using `sni-qt` Qt4 plugin, which converts `QSystemTrayIcon` into `StatusNotifierItem`. Qt5 doesn't have such plugin, but it will have built-in support for StatusNotifierItems in Qt 5.5. More info in issue https://github.com/qbittorrent/qBittorrent/issues/3076#issuecomment-104746296 So, using qbt compiled against Qt4 without sni-qt plugin or using Qt5, does change the behavior, qBt uses the old tray icon implementation which show all icons, but is not supported in KDE Plasma 5 nor in Ubuntu Unity (and maybe more). ![qbt-qt5-tray](https://cloud.githubusercontent.com/assets/2220440/7920600/c981b97e-0865-11e5-850f-fa94a0eac1e6.png) As Ubuntu comes with the `sni-qt` plugin (sni-qt is an optional dependency for qt4 in Arch Linux), more users should have the same problem, but it doesn't seam to be. Maybe there is something more to consider.
Author
Owner

@ngosang commented on GitHub (Jun 1, 2015):

Maybe related #2934.

@ngosang commented on GitHub (Jun 1, 2015): Maybe related #2934.
Author
Owner

@sledgehammer999 commented on GitHub (Jun 1, 2015):

So as it seems this isn't a problem of qbittorrent itself. It is qt (and maybe KDE/Unity).
If someone wants to manually write code to handle this case via dbus, be my guest.
In the meantime I am closing this.
@goetzc thanks for coming back and saying what you found.

@sledgehammer999 commented on GitHub (Jun 1, 2015): So as it seems this isn't a problem of qbittorrent itself. It is qt (and maybe KDE/Unity). If someone wants to manually write code to handle this case via dbus, be my guest. In the meantime I am closing this. @goetzc thanks for coming back and saying what you found.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#2559
No description provided.