-
Notifications
You must be signed in to change notification settings - Fork 449
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
Empty tray menu in Cinnamon using Qt5 #431
Comments
Some desktop environments replace Qt tray with their version and try to reconstruct the menu when user clicks the tray icon. The menu invoked with There are a lot of bug reports for tray in Cinnamon. Perhaps using different tray applet can solve some issues. |
I think you might very well be right. |
If you run the command you use CopyQ directly but if you click the tray icon it calls some wrapper libraries. I think this still involves libraries sni-qt and libdbusmenu. There is arch package for libdbusmenu-qt5 which handles creating tray menu for Qt 5 apps so the problem is likely somewhere there. |
I understand that. What I meant is that after invoking the command, the applet based menu starts working as well. After further investigation, though, it is not really "working", it gets "refreshed". BTW: I've tried using the "collapsible" version you've linked above, but strangely enough, CopyQ icon does not appear there at all... |
Oh, I think I know what is the problem. The wrapper library libdbusmenu-qt is not emitting Qt signal that should be emitted before showing the menu -- in CopyQ the items in tray menu are created/updated right before the menu pops up. This seems to be bug in the library and as you mention only with Qt 5. |
I am affected by this bug as well. I understand, that this is not a bug in CopyQ, but is this issue in libdbusmenu-qt reported somewhere so we can get that fixed? I would be happy to report it, but I do not really understand much about it, so maybe if you could report it ... I would really appreciate it. Thanks for considersing that and thanks for otherwise great SW. |
As referenced in #595 for me, I'm not even seeing an empty icon on 16.04 with Cinnamon 3.2.2 using CopyQ 3.8.x. As noted in that issue, a workaround with CopyQ 3.7.1 of exiting CopyQ after login and starting it up again the icon would display. But with CopyQ 3.8.x that no longer works. The only way I can get to CopyQ is the keyboard shortcut which is a bit frustrating. |
Oh sorry, I closed #595 as duplicate of this but this is just empty tray menu and not missing tray icon. Is |
Looks like I already have them installed: |
I exited and confirmed the process wasn't running. Started from console, copied to clipboard, pasted from clipboard, open via keyboard hotkeys. Nothing generated any errors or warnings on console. |
I tested this in Cinnamon 2.8.6 on Ubuntu 16.04 and on Cinnamon 3.2.0 on Arch Linux. If I start CopyQ after the panel and tray is started, everything looks fine. When starting CopyQ on login, tray icon is missing. As workaround I edit file Exec="/usr/bin/copyq" with Exec=sh -c "sleep 5; /usr/bin/copyq" Not sure why you cannot see icon even after restart. Seems like something in Cinnamon is broken or a dependency is missing. Problem could also be that the icon is in SVG format ( |
As mentioned in #589, the icon could be in incompatible format, so you can try to run following to re-convert the icon. sudo convert -background none /usr/share/icons/hicolor/scalable/apps/copyq-normal.svg{,} |
Converting icon via ( |
Can you test this with |
Unfortunately it didn't help. :( |
I thought I may have grabbed the previous version from that link and so I just tried again. Turns out I did grab the right now, but as noted previously it didn't help. Any other suggestions / ideas? |
@genachka I just tested tray icon with Cinnamon 3.2.7 on Arch Linux and icon is still visible in tray. Can you check if option "Disable tray" is unchecked under "Tray" config tab? Also you can try removing following icons (which are replaced with PNG formats in new version):
|
"Disable tray" is unchecked. I deleted the two .svg icons. And does appear I do have the .png versions:
and
|
@genachka I probably won't be able to do anything with this -- looks like bug in Cinnamon with Qt 5 apps (strangely I don't see this issue on Arch Linux). Do you have any icons in tray (especially Dropbox, Skype or other apps using Qt 5)? |
I do have Skype (for Linux Alpha) and Shutter and Remmina and Chrome icons on the tray, though I don't know which of these are Qt 5? |
install libqt4-svg to solve this. |
Is this still an issue? Last time I checked the app with Cinnamon everything worked fine. @matteotanca The app uses Qt 5, not Qt 4, so libqt4-svg shouldn't be needed. (Actually, only OpenSUSE package uses Qt 4 but I'll be dropping it altogether in near future.) |
@matteotanca already had that installed, doesn't help me. @hluk Yes, still an issue for me. |
Works fine for me on Cinnamon and Arch Linux. |
@raqua which Cinnamon version? I'm on 3.4.6 under Ubuntu 16.04 and have no tray icon. |
I am not currently at my home computer, but I guess I am on the latest Cinnamon version for Arch linux, which should be 3.4.6. |
@genachka Do you use any extensions for tray? |
Nope, no extensions. |
In Ubuntu 16.04 LTX if you uninstall libqt4-svg you have not tray icon. If you install it then tray icon is visible, so maybe its still using qt4 for some reason. |
@matteotanca What does Maybe the library that provides indicator compatibility for Qt 5 tray requires Qt 4 -- it's still odd that it needs library for SVG (libqt4-svg) because the tray icons are installed also in PNG format (looks like it picked wrong format). |
@matteotanca I already had libqt4-svg installed, still no icon: |
I did an apt purge copyq and deleted .config/copyq from my home. CopyQ Clipboard Manager v3.1.2 (hluk@email.cz) |
@matteotanca followed your steps, didn't help me. I then purged and cleaned copyq from my environment and upgraded to 17.10. In 17.10 it now works. Don't know for sure if it was because of clean up or just something that is different with the upgrade to 17.10 but in the end it works now. |
This was reported by several users to CopyQ AUR package of which I'm maintainer.
I'm not sure whether it is CopyQ or Cinnamon, so I'm just gonna start here.
Like said in the title, CopyQ built with Qt5, running in Cinnamon. When clicking the tray icon, an empty "menu widget" appears (see screenshot). Also it seems that the tray icon itself is rendered weirdly - it's smaller and a bit to the side(?) (see second screenshot with Qt4 version for comparison).
Compiled with Qt4 works, also tried on MATE and Xfce - works as well. Seems like something's on CopyQ<->Qt5<->Cinnamon.
To add to the plot, the empty widget part "fixes itself" after invoking "copyq menu" from terminal (icon stays weird).
All of this was tested by me using Manjaro 15.12 Cinnamon, CopyQ 2.5.0, Cinnamon 2.8.6.
The text was updated successfully, but these errors were encountered: