-
Notifications
You must be signed in to change notification settings - Fork 4
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
Open notes from tray feature not working on LxQt #216
Comments
We do not suffer from this bug. BTW: What is your Qt version, OS and desktop environment? |
Thank you for testing the new feature. Please check out the latest revision of the master branch. The latest commit has the tag v1.2.1, not v1.2.0 |
Sorry. I had built v1.2.1. I've corrected the typo in my description. QT versions: qt5-base 5.14.2 and qt5-tools 5.14.2 |
I've tried moving my ~/nobleNote and ~/.config/nobleNote directories, and launching the app (to create a fresh config and notes), but this does not help. If I find time this weekend, I'll see if I can figure out how to debug it myself. |
Could you please try if the new branch "1.3_pre-release" would work for you? |
Sorry for my delay testing the new branch. It slipped my mind. I've tested again, and I'm still having the same issue. |
Is it possible that your desktop environment does not show any sub-menus for tray icons? Can you try to build the snipped above via |
The code snippet works |
After lots of trial and error I came to the conclusion that LxQt does not support dynamically changing the tray menu. I even found LxQt specific workarounds for the issue with the missing "fold out menus". But even if I disable and destroy the tray icon and the menu and re-create it, the menu stays the same. New menu items never appear until the app is restartet. I could not reproduce this issue on any other platform like macOS, Windows or other Linux desktop environments like Gnome or XFCE. |
I thought LXQt borrowed the status notifier from KDE, though I could be wrong about it. I seem to remember reading it borrowed a few things from KDE when I was reading about it a while back. So it's possible this same issue may exist in KDE, too. |
No, KDE does not suffer from this issue. On KDE, the open notes from tray feature works without any issues. |
If you like, I can open a ticket on LXQt's bug tracker (referencing this ticket). This will probably affect Lubuntu too, as this tool is bundled (and it's where I discovered it), although of course, they won't have this new release for quite some time. They may say it's not their problem, if it's not mandated in some sort of specification. However, if they see that it works on most other desktop environments, they may deem it worthwhile. |
Yes, please open a bug ticket. This issue probably affects more apps that try to dynamically change the tray menu. |
Tsujan, one of the LXQt developers, can't see any obvious problems his end: I'm in the unfortunate position of being the messenger! Could you check my issue description and make sure I explained the problem properly. |
@chriswyatt Also, there is no problem creating the menu, only problems when updating the menu. Once updated all menus turn into unresponsive items. I will test this on Lubuntu, but my guess is that it's a problem with Arch Linux. |
OK, I'll leave the other ticket alone in the meantime, until we are sure it's not specific to the combination of Arch, LXQt and nobleNote, or even any mistakes during compilation. I was using vague terms, as I really don't know what they're called in the Qt world. I know next to nothing about Qt. Since I tested this last, there was an update to liblxqt, so it would be worth me trying to compile again, just in case this was some unfortunate chance event of LXQt 0.15 being very new, and packages not being synchronised. I could test in more DEs, but, I'd need to get a virtual machine set up, as I want to try and keep my current one pristine. It's time consuming too. I hope this doesn't block any releases, because it's still quite usable even with this issue, plus it seems to only be affecting LXQt. |
It's not specific to NobleNote. We tested a handful of snippets all failing. |
OK, interesting. On the other ticket, they are asking if someone could provide a small example app that triggers the problem: |
Oh yes. Now I've got an error message on Lubuntu that might help to bring some light into this.
And here the error:
The problem described in the comments above are occurring using the attached snippet. I only get the mentioned error with this snippet though.
if qmake or make fails, try installing the following packages: |
I just re-tested with latest version of NobleNote (pre-release branch) and an up-to-date Arch, after I noticed a lot of Qt dependencies being updated. The issue still persists. I also thought it would be good to re-test, as there was a version mismatch with a package last time I compiled (i.e. LXQt 0.14 and 0.15 packages co-existing). |
@hakaishi |
@tsujan Best regards, Hakaishi |
@hakaishi I think you could work around this problem by adding the needed submenu(s) before |
That's exactly the problem, I presume. |
LXQt's status notifier depends on libdbusmenu-qt (which isn't developed by LXQt), while KDE may have ts own dbus menu. Perhaps, libdbusmenu-qt was derived from KDE's code at some point -- I don't know its history. |
So, at least we know now where the problem lies. |
That's correct. If only I could pinpoint the cause... That might require a detailed comparison between KDE codes and those of libdbusmenu-qt. |
I previously made the feature request #209 (and I was very grateful for the feature being accepted so quickly). I had been using the same revision from this branch for quite a while, but I just built 1.2.1 from master. I went into settings and enabled Open notes from tray. I can see the notebooks in the tray, but clicking them has no effect. Also, it's no longer possible to access the individual notes from the tray menu (i.e., with fold out menus), but this is perhaps by design?
QT versions: qt5-base 5.14.2 and qt5-tools 5.14.2
OS: Arch Linux
Desktop environment: LXQt 0.15.0
The text was updated successfully, but these errors were encountered: