You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this excellent system tray integration!
Relevant components
Standalone tray application (based on Qt Widgets)
Plasmoid/applet for Plasma desktop
Dolphin integration
Command line tool (syncthingctl)
Integrated Syncthing instance (libsyncthing)
Backend libraries
Environment and versions
Versions of syncthingtray, qtutilities and c++utilities: 1.3.2-2, 6.10.0-1, 5.20.0-1 (all as shown in apt info)
Qt version: 5.15.10
LXQt Version: 1.3.0
C++ compiler (name and version): n/a
C++ standard library (name and version): n/a
Operating system (name and version): Lubuntu 23.10
Bug description
I have syncthingtray installed and working in Lubuntu 23.10, which uses the
LXQt desktop environment. Though the tray itself works, it fails to connect to
my Syncthing instance, and remains on the gray icon with tooltip
Not connected to Syncthing
Trying again every 30000 ms
when I hover over it. What's weird is, if I click the tray icon and click Connect
manually, it finds my Syncthing service and connects instantly, showing all
of my folders etc. as expected. So something about the "connect" action wired
to the button is working more effectively than the "connect" action that
syncthingtray claims it is trying automatically every 30 s.
I start Syncthing itself with a systemd user service
(syncthing@max.service), and I start syncthingtray using a .desktop
entry (see below).
Steps to reproduce
Install Lubuntu 23.10
Install Syncthing using apt, set up the Syncthing user systemd service, and add some sync folders.
Install syncthingtray with apt
Set up syncthingtray to autostart (using LXQt GUI, or just paste in the .desktop file below)
Reboot, log back in
Expected behavior
syncthingtray automatically starts and connects to the running Syncthing instance.
Actual behavior
syncthingtray starts, but I have to click on it and click Connect for it to find the Syncthing
service.
Additional context
I have read the Configuring systemd integration section of the README
and my setup appears to have everything that's required. Syncthing runs as
a user (not system) unit and org.freedesktop.systemd1 appears in busctl
(I haven't made any changes to the systemd configuration that ships with
Lubuntu).
Here is the ~/.config/autostart/syncthingtray.desktop entry:
The --wait option I added to syncthingtray in an attempt to solve the problem
reported here, but makes no difference. The X-LXQt-Need-Tray=true option does appear to be necessary—without it, I get nothing in the system
tray at all.
You have considerForReconnect=true in your [systemd] settings and configured syncthingUnit=syncthing.service. That's not the systemd unit you claim to use so it makes sense for Syncthing Tray to assume the unit is not started and avoid any connection attempts. Works as intended I'd say.
I don't know the exact details of your setup but I suppose you'll have to configure syncthing@max.service as the systemd unit name in Syncthing Tray's settings and tick the checkbox for the unit being a system unit as it is probably not a user unit (see remark below). If you've configured it right the UI of Syncthing Tray's settings will show the unit description and status correctly.
Install Lubuntu 23.10
Sorry, but I can't spend the effort of installing a particular OS.
Versions of syncthingtray, qtutilities and c++utilities: 1.3.2-2, 6.10.0-1, 5.20.0-1 (all as shown in apt info)
I also cannot take the effort of supporting older versions. If there's really a bug it might have already been fixed. So please upgrade and test again if my suggestion doesn't help. If there's no package for your platform you'll need to compile one yourself. Maybe the binary in the release section on GitHub works as well.
That is most likely a self-contradicting statement. If you're using syncthing@max.service then this would probably not be a systemd user service started/controlled via systemctl --user … because those services are usually just called syncthing.service (without the user name as parameter).
Here is the ~/.config/autostart/syncthingtray.desktop entry:
Ok, so you have self-crafted a *.desktop entry because the one created by Syncthing Tray's settings doesn't work on LXQt. I suppose I can enhance Syncthing Tray's settings to add X-LXQt-Need-Tray=true and --wait to support LXQt as well. This issue is of course separate from the connection problems.
* Add `--wait` parameter so Syncthing Tray will wait until the tray becomes
available; this might help if Syncthing Tray is started by the desktop
environment before the tray is available (unless it is started too soon
even for that)
* Add `X-LXQt-Need-Tray=true` to ensure the system tray is available on
LXQt because just `--wait` might not be sufficient here (according to
#240); this is in-line
with the autostart entry of https://github.com/lxqt/lxqt-powermanagement
Thanks for this excellent system tray integration!
Relevant components
syncthingctl
)libsyncthing
)Environment and versions
syncthingtray
,qtutilities
andc++utilities
: 1.3.2-2, 6.10.0-1, 5.20.0-1 (all as shown inapt info
)Bug description
I have syncthingtray installed and working in Lubuntu 23.10, which uses the
LXQt desktop environment. Though the tray itself works, it fails to connect to
my Syncthing instance, and remains on the gray icon with tooltip
when I hover over it. What's weird is, if I click the tray icon and click Connect
manually, it finds my Syncthing service and connects instantly, showing all
of my folders etc. as expected. So something about the "connect" action wired
to the button is working more effectively than the "connect" action that
syncthingtray claims it is trying automatically every 30 s.
I start Syncthing itself with a systemd user service
(
syncthing@max.service
), and I start syncthingtray using a.desktop
entry (see below).
Steps to reproduce
.desktop
file below)Expected behavior
syncthingtray automatically starts and connects to the running Syncthing instance.
Actual behavior
syncthingtray starts, but I have to click on it and click Connect for it to find the Syncthing
service.
Additional context
I have read the Configuring systemd integration section of the README
and my setup appears to have everything that's required. Syncthing runs as
a user (not system) unit and
org.freedesktop.systemd1
appears inbusctl
(I haven't made any changes to the systemd configuration that ships with
Lubuntu).
Here is the
~/.config/autostart/syncthingtray.desktop
entry:The
--wait
option I added to syncthingtray in an attempt to solve the problemreported here, but makes no difference. The
X-LXQt-Need-Tray=true
optiondoes appear to be necessary—without it, I get nothing in the system
tray at all.
And here is
~/.config/syncthingtray.ini
:The text was updated successfully, but these errors were encountered: