-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tray icon missing/empty/not shown correctly #1306
Comments
Perhaps my PR #1336 for issue #1244 is fixing this issue too (even though it is only meant for Wayland, not X11). When I find the time I will look into this master issue too... BTW: There is a difference running BiT as root user (not recommended) and with
The home folder may affect the availability of installed icons perhaps but if |
Looking into all the issues I also think that a missing "standard" icon is the root cause and it is my strong suspicion that we should use Lines 24 to 25 in e36d8dc
to enable a default logo for the tray icon when the current theme does not contain the BiT logo icon. Instead of the Also we should check and log if the desktop environment does support a tray icon at all and write at least a info message if not. Here are some commands to run some diagnostics in the current environment that works from the command line. Since the BiT starter scripts to manipulate some env vars I would suggest to add (append) these lines into the
The output on my Ubuntu 20.04 with Gnome3 and X11 as user is:
On Manjaro KDE Plasma with Wayland I get (as user):
|
So, if I understand correctly, this would try to load But we'd need to check if we can reasonably expect |
undo is just an example, there are better Qt5 built-in icons (incl. a disk).
Yes, I want to reproduce the prob first in my VM to understand the cause (no guessed fixing)
Am 17. November 2022 09:26:10 MEZ schrieb "Michael Büker" ***@***.***>:
…So, if I understand correctly, this would try to load `document-save` as backintime's icon, but fallback to `undo` if that's not found? Sounds like a very good solution to me!
But we'd need to check if we can reasonably expect `undo` to exist in situations where `document-save` doesn't. The best test would probably be to reproduce the abovementioned Issues, and/or ask affected users to test new code.
--
Reply to this email directly or view it on GitHub:
#1306 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
I kindly ask all affected users who still do not see the tray icon during taking a backup to run the appropriate diagnostics scripts below in a terminal and show the output in your issue (if still open) or here (if closed) to help me to identify all possible reasons. THX a lot! If you are not sure if the tray icon is working you can force a backup check of a configured profile via
and you should see the sys tray icon then for at least a few seconds (until the backup finishes). Please show the output of
and one of the following scripts: For BiT running as user (not as root) - works for both X11 and Wayland:
For BiT running as root with X11 as display server:
For BiT running as root with Wayland as display server:
The output does look similar to this (with other values):
|
I have created a new separate bug (see # 1404) for this message (that is shown sometimes when the systray icon does not show-up) since it also occurs in other contexts (e. g. unit tests):
|
I have fixed all known issues (hopefully) with my PR #1480, re-testing and feed-back welcome! |
I am closing this now as fixed. Please open a new issue in case of any problems (to get rid of this and the other related issues that are old and have along history of discussions)... |
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:
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)
Graphics/Desktop Environments (where known)
user account for backintime job
Useful logs
From #1098, 2 users reporting identical messages (both for root jobs):
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:
backintime/CHANGES
Line 313 in ab24e10
… but it caused trouble, as @Germar commented: #849 (comment)
… as well as here: #496 (comment)
In the end, it was removed in 1.2.0:
backintime/CHANGES
Line 41 in ab24e10
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:backintime/qt/icon.py
Line 25 in ab24e10
It might be the case that such an icon cannot be found in certains circumstances (in order of decreasing likelihood):
The text was updated successfully, but these errors were encountered: