Closed tschai-yim closed 5 months ago
Interestingly 8c8cf43fcd70b2ac61abe4d03af516d6b69b13ca the master parent commit of the breaking commit 3deaab7643f89048f2ac8e2382dcdb5e04f1bb87 also still has a half working Qt6 version even though nothing of relevance for Linux should have changed.
Without yet delving into all the details, do you have NetworkManager enabled?
Yes the service is running and everything else involving it works as expected. Also the half broken Qt6 version still functionally works meaning it can connect to the instance.
I have no idea how to debug this unfortunately, also this is not reproducible on my machine.
Well good news. Seems the latest unstable release has a half broken but still half functioning version again. Only problem left is the icon and that it doesn't use the built-in context menu: For the icon, there was actually an SVG library that was added during the upgrade. I'll see if I can reproduce it on a VM if I can't solve it from here.
Nvm was on an old version. It's still completely broken on GNOME. I tried out the KDE VirtualBox image and there the latest unstable release works as expected. Maybe a GNOME VM will reproduce the issue.
Was about to write that I got it reproduced on a default GNOME installation, but I noticed I forgot to install the appindicator extension which fixed the issue in the VM. So it's probably something with my config, not with the package itself.
Haha OK these are great news. Perhaps upstream could have helped you figure that out if this image:
Had mentioned the appindicator gnome extension?
That image is empty for me. I did have the extension already installed on my actual system, and it worked flawlessly previously, as it does with for example Flameshot even now. The extension supports multiple tray APIs though (I think), so maybe my config breaks one of them while the others are fine. Also, I didn't find any bugs related to appindicator extension on NixOS or GNOME in general, and neither their nix package nor actual normal releases have seen any updates in the last few months.
So I narrowed it down to this home manager config:
qt.platformTheme.name = "gnome";
which then used an unmaintained platform theme plugin. So excuse the caused commotion, I'll fix the issue in home manager and update this issue's description in case someone stumbles onto the same problem.
Describe the bug
syncthingtray
now uses Qt6 which fails to find the system tray when using theqgnomeplatform
platform theme plugin (qt.platformTheme = "gnome"
in home manager). It instead shows the popup seen below and then exits.qgnomeplatform
is unmaintained was superseded by qadwaitadecorations. For home manager, a fix (https://github.com/nix-community/home-manager/pull/5156) is underway.The entire log is:
Previously mentioned here
Steps To Reproduce
Make Qt use
qgnomeplatform
in a GNOME environment and startsyncthingtray
.Expected behavior
It should start as a system icon and not throw any errors.
Screenshots
Broken Qt6 version
Popup before exiting with code
1
:Half broken Qt6 version before breaking commit
The popup above is at the completely different end of the screen. Is an unrelated issue to do with Wayland.
Working Qt5 version before breaking commit (which removes it)
Additional context
Code
The relevant piece of code causing this popup can be found here. Seems Qt deems the system tray as not available.
Commits
This commit completely breaks the Qt6 version. Before this
syncthingtray-qt6
does startup but has a pixilated icon and doesn't use the GNOME context menu popup but instead starts its own context menu. Qt5 worked perfectly up until the commit above where it was removed.Loaded plugins
Logs were gathered using
QT_DEBUG_PLUGINS=1
.The Qt5 version at commit 60a7f5155487f122c7674dbdc2911e5d48c12907 (right before the breaking commit) loads:
The Qt6 version on the same commit loads the following:
The Qt6 version after the breaking commit and the latest fixes (commit a907ea8faae92334d849f4793c2c6c4edaff9006) loads:
Notify maintainers
@doronbehar
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.