-
Notifications
You must be signed in to change notification settings - Fork 277
Description
This is an attempt to combine/summarize multiple reports of the systray (notification area) icon being missing/empty/malformed, with a total of 9 users reporting as being affected, namely:
- 1 affected user: Tray icon missing under Elementary OS Loki #849
- 5 affected users: System tray icon appears during the backup, but with no icon #1098
- 1 affected user: No tray icon on KDE openSUSE Tumbleweed #1152
- 3 affected users: Systray icon missing / empty #1236 (related: No tray icons when running as root #1240)
backintime versions affected
Although the code relating to the systray icon has changed significantly since 1.1.0 (see below: "Past progress bar over systray feature (1.1.0 until 1.1.24)"), there is at least one report of version 1.3.2 being affected: #1098 (comment)
Distributions affected (where known)
- 6 rolling-release/DIY distros, thus difficult to reproduce:
- 4x Arch (all in System tray icon appears during the backup, but with no icon #1098)
- 1x Gentoo (Systray icon missing / empty #1236 (comment))
- 1x openSUSE Tumbleweed (No tray icon on KDE openSUSE Tumbleweed #1152)
- 3 non-rolling releases:
- 1x Ubuntu 21.10 (Systray icon missing / empty #1236 (comment))
- 1x Elementary OS Loki (now obsolete, Tray icon missing under Elementary OS Loki #849)
- 1x Fedora 35 (Soon obsolete, Systray icon missing / empty #1236 (comment) / No tray icons when running as root #1240)
Graphics/Desktop Environments (where known)
- 2 KDE/Plasma 5 on X11 (No tray icon on KDE openSUSE Tumbleweed #1152 and System tray icon appears during the backup, but with no icon #1098 (comment))
- 1 Cinnamon on X11 (System tray icon appears during the backup, but with no icon #1098 (comment))
- 1 Budgie (System tray icon appears during the backup, but with no icon #1098 (comment))
- 1 no desktop environment (System tray icon appears during the backup, but with no icon #1098 (comment))
- 1 Elementary OS "Pantheon"/GNOME (Tray icon missing under Elementary OS Loki #849)
- 1 XFCE 4 (Systray icon missing / empty #1236)
- 1 GNOME 40.4 on Ubuntu 21.10 (Systray icon missing / empty #1236 (comment))
user account for backintime job
- 4x root user (System tray icon appears during the backup, but with no icon #1098 (comment) and System tray icon appears during the backup, but with no icon #1098 (comment) and No tray icons when running as root #1240 and System tray icon appears during the backup, but with no icon #1098 (comment))
- significantly, in one case, backintime is also missing an icon in the task bar when open for the root user: System tray icon appears during the backup, but with no icon #1098 (comment)** – this seems to rule out an issue associated with the past progress bar over systray feature (see below).
Useful logs
From #1098, 2 users reporting identical messages (both for root jobs):
Jul 20 10:35:01 j python[80624]: backintime (root/1): INFO: Take a new snapshot. Profile: 1 Main profile
Jul 20 10:35:01 j python[80624]: backintime (root/1): INFO: Call rsync to take the snapshot
Jul 20 10:35:01 j python[80629]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Jul 20 10:35:01 j python[80629]: QPainter::begin: Paint device returned engine == 0, type: 2
Jul 20 10:35:01 j python[80629]: QWidget::render: Cannot render with an inactive painter
Jul 20 10:35:01 j python[80629]: QSystemTrayIcon::setVisible: No Icon set
Jul 20 10:35:08 j python[80624]: backintime (root/1): INFO: Save config file
Jul 20 10:35:08 j python[80624]: backintime (root/1): INFO: Save permissions
Past progress bar over systray feature (1.1.0 until 1.1.24)
Version 1.1.0 introduced a progress bar displayed over the systray icon:
Line 313 in ab24e10
| * add ProgressBar for rsync |
… but it caused trouble, as @Germar commented: #849 (comment)
That's a problem on how I solved the progress bar in the tray icon. It will load a different icon as soon as it prints the progress bar. Should be fixed as soon as we have a proper BiT icon which will have a progress indicator by it self. I already have an idea for that...
… as well as here: #496 (comment)
I couldn't reproduce the high CPU/memory usage on Kubuntu 15.10 but the progress bar doesn't show up either. That line should render a progress bar on top of the systray icon. It's a little hack I used to show progress in systray.
In the end, it was removed in 1.2.0:
Line 41 in ab24e10
| * remove progressbar on systray icon until BiT has it's own icon (https://github.com/bit-team/backintime/issues/902) |
Current best guess: backintime cannot find icon from system theme to use
Backintime has no icon of its own (#215), so it uses the "save" icon (Icon=document-save in its .desktop file on Kubuntu) from any given Desktop Environment/theme as its main icon, both in menus and in the system tray. The same strategy is employed to set backintime's icon in Qt:
Line 25 in ab24e10
| BIT_LOGO = QIcon.fromTheme('document-save') |
It might be the case that such an icon cannot be found in certains circumstances (in order of decreasing likelihood):
- the root user doesn't have the right paths set (Systray icon missing / empty #1236 (comment))
- an unusual combination of theme/DE is active,
- there is no DE installed (System tray icon appears during the backup, but with no icon #1098 (comment))