andrew-bibb / cmst

QT GUI for Connman
173 stars 37 forks source link

[Bug] System tray cannot show up in waybar if it's specified in sway conf #298

Closed IceAsteroid closed 4 months ago

IceAsteroid commented 11 months ago

It works by being launched in a terminal, the system tray appears in waybar without any issue, but if I specify it in sway conf, such as follows:

exec_always "pkill cmst; cmst -m"

cmst's tray weirdly doesn't show up in waybar, but instead is running in background.

If I then execute cmst in a terminal, the cmst interface will be launched, and the output in terminal will complain "Another running instance of CMST has been detected. This instance is aborting".

sway version: 1.8.1 waybar version: v0.9.20 cmst version: 2023.03.14-1

Running in voidlinux.

Any ideas?

oniGino commented 6 months ago

sounds like waybar is being launched after cmst, that might be the source of the issue, try

exec_always "pkill cmst; sleep 10; cmst -m" to verify

either that or your exec environment under sway is missing some ENV variables to let QT know its running under wayland not X

IceAsteroid commented 4 months ago

@oniGino It works, oh my god, thank you so much for the help