Closed nocico closed 7 years ago
Hey @nocico, are us using the Ubuntu-provided packages for Qt or did you build it yourself?
I have built Qt in the past so your question gave me existential doubts, but qtpanopticon is linked against system libraries:
Just to be sure I ran
sudo apt install --reinstall qt5-default qtdeclarative5-dev \
qml-module-qtquick-controls qml-module-qttest \
qml-module-qtquick2 qml-module-qtquick-layouts \
qml-module-qtgraphicaleffects qml-module-qtqml-models2 \
qml-module-qtquick-dialogs \
qtbase5-private-dev
and still got the same issue. apt-cache policy
also shows the packages are coming from archive.ubuntu.com yakkety/main and universe rather than a custom repo I added and forgot about. There isn't anything in my env either.
To be sure this isn't a bug in panopticon but in qt/ubuntu or maybe some weirdness on my machine, and I have an adequate workaround for myself, so feel free to close this issue at any time. I just thought you should know about it in case it's widespread since ubuntu 16.10 isn't an obscure distro.
Actually there was something in env :D env -i DISPLAY=:0.0 ./qtpanopticon
works. I'll pinpoint the exact variable soon. EDIT: Basically this is a false alarm as the variable responsible is DBUS_SESSION_BUS_ADDRESS and the menu fails to show up when it is unset.
Hey @nocico, sorry to keep you waiting. I just built the current master on Ubuntu and it works fine. So the missing DBUS_SESSION_BUS_ADDRESS seems to be the only problem (for now). Thanks for trying out Panopticon and your extensive debugging :smile:. Please don't hesitate to reopen the issue if your problem reappears.
it seems to be https://bugreports.qt.io/browse/QTBUG-56526. commenting out
menuBar: Ctrl.MenuBar { ... }
in Window.qml allows panopticon to launch