Closed yafp closed 6 years ago
Something similar happens to me: the tray icon is missing after booting up my system and I need to disable/enable the 'Show Tray Icon' option for the icon to show.
Environment:
So far Fedora 23 and 25 work, archlinux as well. I remember that I encountered this one as well months ago.
This is a known bug and fixed in Qt 5.5.0 Alpha. Which Qt version are you using?
@ManuelSchneid3r
yes i am aware of the weird tray bar in gnome-shell - while i personally move gnome-tray icons to the top panel using another gnome-shell plugin (TopIcons Plus). This usually works without issues for other applications using tray icons (i.e. dropbox, VMware etc)
Regarding qt version: Looks like Ubuntu 16.04 is using QT 5.5.1
I'm also facing this issue.
@ManuelSchneid3r no
An update on the comment I wrote a few days ago: I changed both my WM and GTK theme of my DE from Vertex-Maia to Arc-Darker and Albert's tray icon now shows up w/o problems.
Still, I do think this behavior with the Vertex-Maia theme + XFCE4 combo should be addressed. I don't mind lending a hand to help solve this.
@aitbw
I don't mind lending a hand to help solve this.
Are you familiar with C++/Qt/CMake/QtCreator? Maybe there is a bug in the icon lookup. Actually the theme should always fallback to hicolor, which should contain the albert icon. (unless you did not install albert with make install or a package manager)
I encountered the same problem on Linux Mint 18.1 with cinnamon, and launching albert with dbus-launch albert
is a possible workaround (like Dropbox for Cinnamon cf. https://github.com/linuxmint/Cinnamon/issues/4396)
@miguelmartin75 I'm having what appears to be the exact same issue as you under KDE/Plasma. Did you end up finding a solution?
@yafp @jamesbvaughan @MattMattV is this still a problem? Which qt5 versions are you using?
This one is pretty old and I cannot reproduce it anymore. I guess this issue stems from times before we had the handcrafted icon lookup. Closing. If I am wrong let me know.
@ManuelSchneid3r Sorry for the late reply. I replaced Gnome Shell with XFCE in the meantime and can not longer reproduce that issue with Albert 0.13.1.
note that 0.13.1 is pretty outdated. please use the official repos
missing icon on systray, clicking on blank space does bring up menu options,
my info;
System: Host: Satellite-C55-B Kernel: 4.17.3-1-default x86_64 bits: 64 compiler: gcc v: 8.1.1 Desktop: KDE Plasma 5.13.1 tk: Qt 5.11.1 Distro: openSUSE Tumbleweed 20180629
Repository : home:manuelschneid3r (openSUSE_Tumbleweed)
Name : albert
Version : 0.14.21-56.4
Arch : x86_64
Vendor : obs://build.opensuse.org/home:manuelschneid3r
Installed Size : 4.5 MiB
Installed : Yes
Status : up-to-date
Source package : albert-0.14.21-56.4.src
no other issues found, kudos dev, a very nice app.
Sorry to revive old issue, but I still can experience the issue on my machine.
Albert is installed from AUR at version 0.16.1-1
QT5 version : 5.12.0
Also please note that I'm using Kvantum to apply the materi-kde theme.
I'l try to have better availability than the last time you pinged me, please excuse me.
``` OS: Manjaro 18.0.2 Illyria Kernel: x86_64 Linux 4.19.16-1-MANJARO Uptime: 22h 28m Packages: 1582 Shell: zsh 5.6.2 Resolution: 3840x1080 DE: KDE 5.54.0 / Plasma 5.14.5 WM: KWin GTK Theme: Materia-dark [GTK2/3] Icon Theme: Papirus-Dark Font: IBM Plex Sans Regular CPU: Intel Xeon E5-2630 v4 @ 20x 3.1GHz [34.0°C] GPU: radeondrmfb RAM: 6334MiB / 32087MiB ```
``` Xlib: extension "NV-GLX" missing on display ":0". Qt 5.12.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.2.1 20181127) on "xcb" OS: Manjaro Linux [linux version 4.19.16-1-MANJARO] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE Environment: QT_AUTO_SCREEN_SCALE_FACTOR="0" QT_LINUX_ACCESSIBILITY_ALWAYS_ON="1" QT_LOGGING_RULES="*=false" Features: QT_NO_EXCEPTIONS Library info: PrefixPath: /usr DocumentationPath: /usr/share/doc/qt HeadersPath: /usr/include/qt LibrariesPath: /usr/lib LibraryExecutablesPath: /usr/lib/qt/libexec BinariesPath: /usr/bin PluginsPath: /usr/lib/qt/plugins ImportsPath: /usr/lib/qt/imports Qml2ImportsPath: /usr/lib/qt/qml ArchDataPath: /usr/lib/qt DataPath: /usr/share/qt TranslationsPath: /usr/share/qt/translations ExamplesPath: /usr/share/doc/qt/examples TestsPath: /usr/tests SettingsPath: /etc/xdg Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */home/matthieu/Bureau* DocumentsLocation: "Documents" */home/matthieu/Documents* FontsLocation: "Fonts" */home/matthieu/.local/share/fonts* /home/matthieu/.fonts ApplicationsLocation: "Applications" */home/matthieu/.local/share/applications* /home/matthieu/.local/share/flatpak/exports/share/applications /var/lib/flatpak/exports/share/applications /usr/local/share/applications /usr/share/applications /var/lib/snapd/desktop/applications MusicLocation: "Music" */home/matthieu/Musique* MoviesLocation: "Movies" */home/matthieu/Vidéos* PicturesLocation: "Pictures" */home/matthieu/Images* TempLocation: "Temporary Directory" */tmp* HomeLocation: "Home" */home/matthieu* AppLocalDataLocation: "Application Data" */home/matthieu/.local/share/QtProject/qtdiag* /home/matthieu/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag CacheLocation: "Cache" */home/matthieu/.cache/QtProject/qtdiag* GenericDataLocation: "Shared Data" */home/matthieu/.local/share* /home/matthieu/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share /usr/local/share /usr/share /var/lib/snapd/desktop RuntimeLocation: "Runtime" */run/user/1000* ConfigLocation: "Configuration" */home/matthieu/.config* /etc/xdg DownloadLocation: "Download" */home/matthieu/Téléchargements* GenericCacheLocation: "Shared Cache" */home/matthieu/.cache* GenericConfigLocation: "Shared Configuration" */home/matthieu/.config* /etc/xdg AppDataLocation: "Application Data" */home/matthieu/.local/share/QtProject/qtdiag* /home/matthieu/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag AppConfigLocation: "Application Configuration" */home/matthieu/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag File selectors (increasing order of precedence): fr_FR unix linux manjaro Network: Using "OpenSSL 1.1.1a 20 Nov 2018", version: 0x1010101f Platform capabilities: ThreadedPixmaps OpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 4 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+25CF fontSmoothingGamma: 1.7 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusAllControls singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 0 Theme: Platforms requested : kde,generic available : kde,gtk3,snap,flatpak,xdgdesktopportal Styles requested : kvantum-dark,breeze,oxygen,fusion,windows available : Breeze,kvantum-dark,kvantum,Oxygen,Windows,Fusion Icon theme : Papirus, hicolor from /home/matthieu/.local/share/icons,/usr/share/icons,/home/matthieu/.icons System font : "IBM Plex Sans" 10 Fonts: General font : "IBM Plex Sans" 10 Fixed font : "Hack" 9 Title font : "IBM Plex Sans" 10 Smallest font: "IBM Plex Sans" 8 Palette: QPalette::WindowText: #ffd3dae3 QPalette::Button: #ff424242 QPalette::Light: #ff414141 QPalette::Midlight: #ff363636 QPalette::Dark: #ff171717 QPalette::Mid: #ff232323 QPalette::Text: #ffd3dae3 QPalette::BrightText: #ffffffff QPalette::ButtonText: #ffffffff QPalette::Base: #ff383838 QPalette::Window: #ff282828 QPalette::Shadow: #ff111111 QPalette::Highlight: #ff4285f4 QPalette::HighlightedText: #ffffffff QPalette::Link: #ff00bcd4 QPalette::LinkVisited: #ff00bcd4 QPalette::AlternateBase: #ff31363b QPalette::NoRole: #ff000000 QPalette::ToolTipBase: #ff282828 QPalette::ToolTipText: #ffd3dae3 QPalette::PlaceholderText: #80d3dae3 Screens: 2, High DPI scaling: inactive # 0 "DisplayPort-0" Depth: 24 Primary: yes Manufacturer: Dell Inc. Model: S2718HN/NX- Serial number: KWY4Y741088L- Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0 Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0 2 virtual siblings Physical size: 598x336 mm Refresh: 60 Hz Power state: 0 Physical DPI: 81.5518,81.6429 Logical DPI: 96,96.2526 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "DisplayPort-1" Depth: 24 Primary: no Manufacturer: Dell Inc. Model: S2718HN/NX- Serial number: KWY4Y74108UL- Geometry: 1920x1080+0+0 Available: 1920x1080+0+0 Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0 2 virtual siblings Physical size: 598x336 mm Refresh: 74 Hz Power state: 0 Physical DPI: 81.5518,81.6429 Logical DPI: 96,96.2526 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: X.Org Renderer: AMD OLAND (DRM 2.50.0, 4.19.16-1-MANJARO, LLVM 7.0.1) Version: 4.5 (Compatibility Profile) Mesa 18.3.2 Shading language: 4.50 Format: Version: 4.5 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8 Profile: None (QOpenGLFunctions_4_5), Core (QOpenGLFunctions_4_5_Core), Compatibility (QOpenGLFunctions_4_5_Compatibility) Vulkan instance available Supported instance extensions: VK_KHR_device_group_creation, version 1 VK_KHR_external_fence_capabilities, version 1 VK_KHR_external_memory_capabilities, version 1 VK_KHR_external_semaphore_capabilities, version 1 VK_KHR_get_display_properties2, version 1 VK_KHR_get_physical_device_properties2, version 1 VK_KHR_get_surface_capabilities2, version 1 VK_KHR_surface, version 25 VK_KHR_wayland_surface, version 6 VK_KHR_xcb_surface, version 6 VK_KHR_xlib_surface, version 6 VK_KHR_display, version 23 VK_EXT_direct_mode_display, version 1 VK_EXT_acquire_xlib_display, version 1 VK_EXT_display_surface_counter, version 1 VK_EXT_debug_report, version 9 VK_EXT_debug_utils, version 1 Supported layers: Available physical devices: ```
Same thing, Albert 0.16.1 on Manjaro. Qt 5.12.3. Breeze Dark theme, Papirus-Dark icon theme. No icon for Albert. All other apps display icons fine.
Same problem, is there any concern about this?
Manjaro 19.0.2 Kyria
Kernel: x86_64 Linux 5.4.30-1-MANJARO
Latte dock
KDE 5.68.0 / Plasma 5.18.4
I have the missing tray icon issue with
kubuntu 20.40
Plasma 5.18.5
Qt 5.12.18
albert 0.16.1
Missing albert icon on tray
Still missing albert icon in KDE Plasma Arch Linux 5.7.7 KDE Plasma 5.19.3 Qt 5.15.0 Albert 0.16.1
Well I see that you all have this problem. However this is a Qt issue. It would be cool if you could find a Qt app that does not have this issue so we can finally get along and find a solution. I am not keen on fixing their issues.
@ManuelSchneid3r I can reproduce this with Plasma 5.20.4 / Qt 5.15.2. After some debugging, replacing
QIcon(XDG::IconLookup::iconPath({"albert-tray", "albert"}))
with
QIcon::fromTheme("albert-tray")
seems to solve the issue. I have checked, and XDG::IconLookup::iconPath
returns the correct path to the icon for my theme (128x128 svg), and if I replace the QIcon with a QPixmap, it also seems to work.
Is there any reason for QIcon::fromTheme
not to be used, at least in this instance?
I am not familiar enough with this to debug it further, please let me know if there's anything else I can try or help with.
Is there any reason for
QIcon::fromTheme
not to be used, at least in this instance?
its hard to admit 👀 but I forgot. The only thing I remember is that it did not work the most time back then. but thats over 5 years ago. I should give it a try again since the current handcrafted version is not perfect either.
@ManuelSchneid3r
Still seeing a blank space where the Albert tray icon should be. KDE Neon User Edition, fully updated as of March 6, 2021. Running the very latest official release versions:
Plasma 5.21.2 Qt 5.15.2. Albert 0.17.2
I see a tooltip that says "Albert" and the menu appears when clicking on the empty space. But no icon at all. Turning "Show tray icon" off and back on makes no difference.
Arch Linux?
@ManuelSchneid3r
Arch Linux?
No, I was surprised to discover that KDE Neon is always based on the latest LTS version of Ubuntu, which is 20.04.2 at the moment. Same as current Mint releases. They just have a particular focus on keeping at least the KDE components and possibly other applications like LibreOffice up to date with the very latest official releases.
I installed Albert on Neon from the same Ubuntu 20.04 repository that I used for Mint 20.1. Works great other than the invisible tray indicator.
fwiw Since using Albert I never had a tray icon, but since latest updates from yesterday it finally works.
Operating System: KDE neon 5.21 KDE Plasma Version: 5.21.2 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 Albert 0.17.2
@ManuelSchneid3r
Confirming the post just above. KDE Neon with Plasma 5.21.2 suddenly has a visible Albert icon in the tray.
Which is strange because the versions of everything, including Albert, seems to be the same as 10 days ago when it wasn't working.
There is a 5.21.3 update that just released but that doesn't even seem to be in the KDE Neon repository yet, so that wasn't reponsible. But I did see numerous small package updates yesterday when I logged in for the first time in a few days.
Ah, the KDE Frameworks updated from 5.79.0 to 5.80.0.
Operating System: KDE neon 5.21 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2
The systray icon is gone again following latest updates.
@kyrawertho @ManuelSchneid3r
Operating System: KDE neon 5.21 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2
The systray icon is gone again following latest updates.
Same here. Confirming that the Albert tray icon has once again become invisible on my KDE Neon install.
KDE Frameworks 5.79.x: Invisible KDE Frameworks 5.80.x: Visible KDE Frameworks 5.81.0: Invisible again.
@ManuelSchneid3r
From https://bugs.kde.org/show_bug.cgi?id=435738:
"IconName" = [Variant(QString): ""],
"IconPixmap" = [Variant: [Argument: a(iiay) {}]],
Both IconName and IconPixmap are empty.
Most probably QIcon::fromTheme should be used (as mention in app bug report).
https://github.com/albertlauncher/albert/blob/dev/src/app/trayicon.cpp#L15
This is echoing the comment from @joserebelo above that also says QIcon::fromTheme
may fix the problem.
5.4.212-1-MANJARO, KDE still have the problem, can reopen this issue?
Is there any reason for QIcon::fromTheme not to be used, at least in this instance?
It does exactly the same: Look up the file, and make an icon from it. The qt lookup is shitty though, because it finds low res icons
Environent
Steps to reproduce
Expected behaviour
A tray icon should be displayed if enabled
Actual behaviour
No tray icon at all