-
Notifications
You must be signed in to change notification settings - Fork 47
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
Linux XFCE submenu empty #12
Comments
OK thanks. Can you please test the example app in this repo and report whether the submenu appears there? |
Can you please confirm which version of XFCE? I cannot replicate the problem with 4.16. |
Test, and the same result. Chick this video: test-systray.mp4 |
Thank you for this. |
Hey andy, sorry for late response. |
It appears periodically and sometimes it require 10+ restarts of example app to catch the problem. |
About data races - I fixed a lot of them in my fork. |
I also can confirm that KDE notification tray plugin always show submenu on the wrong side (partly outside the screen) during the first opening of submenu. I see such behaviour in my tests on Kubuntu 22.04 (fresh install without and with latest updates). |
Great news, if you could open some pull requests I am sure they would be gladly received :). |
Agreed, we don't control how the menu will be rendered so can't fix that particular issue I think |
Ok. I'll do the PR with my fixes. |
The results of my investigations on the XFCE sub-menu problem. I've made a huge amount of tests with watching over DBUS communications (using I've found that there are only three possible scenarios leads to 3 different results of the example app work (my comments after # based on info from more detailed CASE 1
Result: both sub-middle and sub-bottom are displayed CASE 2
Result: sub-bottom is not displayed, sub-middle is displayed CASE 3
Result: neither sub-middle nor sub-bottom are displayed So, the problem is caused by response messages sequence. The only working sequence is exact first-in-first-out. Unfortunately there is no control on response messages sequence available at the level of |
It. seems that it it not I've opened the issue in the gitlab.xfce.org/panel-plugins project for fixing this problem. |
Thank you so much @slytomcat - let's see what they say. |
That's why I love the Open Source World: you 'almost always' :) can find people who can help you. |
https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/582 is closed as wrong working lib is not maintained any more :( There is my simply workaround (deployed into my yd-go project): PATH_TO_PATCH="$(go env GOMODCACHE)/$(cat go.mod | grep 'github.com/godbus/dbus/v5' | sed 's/\s*\(\S\+\) \(.*\)$/\1@\2/')"
chmod a+w $PATH_TO_PATCH
patch <conn.patch -f $PATH_TO_PATCH/conn.go while conn.patch file contains:
Patching code can be added to build script like I done it here Unfortunately I see no better solution at the moment. BTW: there is some plans to move XFCE panel back-end to Ayatana indicator project. But Ayatana has another big issue: It dosn't support IconPixmap property of org.freedesktop.StatusNotifierItem interface. |
Should we open a bug in the |
godbus/dbus#327 - there is already one opened and closed later about this. The patch is just a simplest workaround but not the fix of real issue (in libdbusmenu) |
Ah yes I see, thanks for all of this. |
So we should hide sub-menus on XFCE desktops, right? :) |
@mrpalide no, you can apply the patch to the godbus for your build and sub-menus on XFCE will work fine (because your app will handle the requests from libdbusmenu in the sequense as they comes). It's not perfect solution, but it works. |
C is not my favorite language but I'll try to find the problem in that lib. Probably there is someone more experienced in C who can find and fix this issue in libdbusmenu. |
Hey there!
We have an app that use systray, and now I want to submit this report as issue.
On Gnome works like a charm. But XFCE is unstable in submenu!, and KDE Plasma is really strange and useless on submenus.
You can see bellow screencasts:
Screen Cast
Ubuntu
OS: Ubuntu 22.04 (Minimal Installation)
Desktop: Gnome 42.0
ubuntu2204.mp4
Nitrux (Debianbased)
OS: Nitrux 2.1.1
Desktop: KDE Plasma 5.24.4
nitrux.mov
Manjaro (Archbased)
OS: Manjaro 21.2.6
Desktop: XFCE
manjaro.mov
The text was updated successfully, but these errors were encountered: