albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.21k stars 303 forks source link

The albert app icon is not showing in the system tray in KDE 5.18.5 #1064

Closed aystic closed 1 year ago

aystic commented 2 years ago

Description I am using Pop!_OS 20.04 LTS + KDE 5.18.5, The albert icon is not showing up in the system tray but it is there, Only vacant space can be seen in its place and on mouseover the tooltip says "albert" and the left and right click also works.

Expected behavior The icon should be visible in the system tray

Steps to reproduce I installed KDE yesterday and the albert icon has never shown even once.

Screenshots

https://user-images.githubusercontent.com/54324845/143143133-8dd5948b-0b2a-4771-8e12-a1e043d9df06.mp4

Additional information (please provide the following information):

Downloaded from OBS

http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04/ 
Output of `albert --report ` core: Albert version: 0.17.2
core: Build date: Oct 29 2017 00:00:00
core: Qt version: 5.12.8
core: QT_QPA_PLATFORMTHEME:
core: Binary location: /usr/bin/albert
core: PWD: /home/pmohit
core: SHELL: /usr/bin/fish
core: LANG: en_IN.UTF-8
core: XDG_SESSION_TYPE: x11
core: XDG_CURRENT_DESKTOP: KDE
core: DESKTOP_SESSION: plasma
core: XDG_SESSION_DESKTOP: KDE
core: OS: Pop!_OS 20.04 LTS
core: OS (type/version): pop/20.04
core: Build ABI: x86_64-little_endian-lp64
core: Arch (build/current): x86_64/x86_64
core: Kernel (type/version): linux/5.13.0-7620-generic
Output of `albert` when started in a terminal (stdout/stderr) 04:47:18 [info:core] Initializing application
04:47:18 [info:default] Systems icon theme is: ""
04:47:18 [info:core] Initializing mandatory paths
04:47:18 [info:core] Setup signal handlers
04:47:18 [info:core] Creating running indicator file
04:47:18 [info:core] Initializing core components
04:47:19 [info:core] Loading extension org.albert.extension.applications
04:47:19 [info:apps] Start indexing applications.
04:47:19 [debg:core] org.albert.extension.applications loaded in 1 milliseconds
04:47:19 [info:core] Loading extension org.albert.extension.calculator
04:47:19 [debg:apps] Indexing desktop file: Cleaning Mode.desktop
04:47:19 [debg:apps] Indexing desktop file: DevDocs.desktop
04:47:19 [debg:core] org.albert.extension.calculator loaded in 29 milliseconds
04:47:19 [info:core] Loading extension org.albert.extension.chromium
04:47:19 [debg:core] org.albert.extension.chromium loaded in 11 milliseconds
04:47:19 [info:core] Loading extension org.albert.extension.files
04:47:19 [debg:applications] Loading file index from cache.
04:47:19 [debg:applications] Building inverted file index.
04:47:19 [info:applications] Start indexing files.
04:47:19 [debg:core] org.albert.extension.files loaded in 92 milliseconds
04:47:19 [info:core] Loading extension org.albert.extension.hashgenerator
04:47:19 [debg:core] org.albert.extension.hashgenerator loaded in 0 milliseconds
04:47:19 [info:core] Loading extension org.albert.extension.python
04:47:19 [warn:default] QFileSystemWatcher::removePaths: list is empty
04:47:19 [debg:python.modulev1] Reading metadata of python module: api_test
04:47:19 [debg:applications] Serializing files…
04:47:19 [debg:applications] Building inverted file index…
04:47:19 [debg:python.modulev1] Reading metadata of python module: arch_wiki
04:47:19 [debg:python.modulev1] Reading metadata of python module: atom_projects
04:47:19 [info:python.modulev1] Could not locate python module 'cson'.
04:47:19 [debg:python.modulev1] Reading metadata of python module: aur
04:47:19 [debg:python.modulev1] Reading metadata of python module: base_converter
04:47:19 [info:python.modulev1] Loading /usr/share/albert/org.albert.extension.python/modules/base_converter
04:47:19 [debg:python.modulev1] Reading metadata of python module: binance
04:47:19 [debg:python.modulev1] Reading metadata of python module: bitwarden
04:47:19 [info:python.modulev1] No 'rbw' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: copyq
04:47:19 [info:python.modulev1] No 'copyq' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: currency_converter
04:47:19 [info:python.modulev1] Loading /usr/share/albert/org.albert.extension.python/modules/currency_converter
04:47:19 [debg:python.modulev1] Reading metadata of python module: datetime
04:47:19 [info:python.modulev1] Loading /usr/share/albert/org.albert.extension.python/modules/datetime
04:47:19 [debg:python.modulev1] Reading metadata of python module: docker
04:47:19 [info:python.modulev1] Could not locate python module 'docker'.
04:47:19 [debg:python.modulev1] Reading metadata of python module: fortune
04:47:19 [info:python.modulev1] No 'fortune' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: gnome_dictionary
04:47:19 [info:python.modulev1] No 'gnome-dictionary' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: gnote
04:47:19 [info:python.modulev1] No 'gnote' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: goldendict
04:47:19 [info:python.modulev1] No 'goldendict' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: google_translate
04:47:19 [debg:python.modulev1] Reading metadata of python module: ip
04:47:19 [debg:python.modulev1] Reading metadata of python module: jetbrains_projects
04:47:19 [warn:python.modulev1] [jetbrains_projects] Invalid version format: ''. Expected '^(\d)\.(\d)\.(\d)$'.
04:47:19 [debg:python.modulev1] Reading metadata of python module: kill
04:47:19 [info:python.modulev1] Loading /usr/share/albert/org.albert.extension.python/modules/kill
04:47:19 [debg:python.modulev1] Reading metadata of python module: locate
04:47:19 [debg:python.modulev1] Reading metadata of python module: lpass
04:47:19 [info:python.modulev1] No 'lpass' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: mathematica_eval
04:47:19 [info:python.modulev1] No 'wolframscript' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: multi_google_translate
04:47:19 [debg:python.modulev1] Reading metadata of python module: node_eval
04:47:19 [info:python.modulev1] No 'node' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: npm
04:47:19 [info:python.modulev1] No 'npm' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: packagist
04:47:19 [info:python.modulev1] No 'composer' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: pacman
04:47:19 [info:python.modulev1] No 'expac' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: pass
04:47:19 [info:python.modulev1] No 'pass' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: php_eval
04:47:19 [info:python.modulev1] No 'php' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: pidgin
04:47:19 [debg:python.modulev1] Reading metadata of python module: pomodoro
04:47:19 [debg:python.modulev1] Reading metadata of python module: python_eval
04:47:19 [debg:python.modulev1] Reading metadata of python module: scrot
04:47:19 [info:python.modulev1] No 'scrot' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: tex_to_unicode
04:47:19 [info:python.modulev1] Could not locate python module 'pylatexenc'.
04:47:19 [debg:python.modulev1] Reading metadata of python module: texdoc
04:47:19 [info:python.modulev1] No 'texdoc' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: timer
04:47:19 [info:python.modulev1] Loading /usr/share/albert/org.albert.extension.python/modules/timer
04:47:19 [debg:python.modulev1] Reading metadata of python module: tomboy
04:47:19 [info:python.modulev1] No 'tomboy' in $PATH.
04:47:19 [debg:python.modulev1] Reading metadata of python module: trash
04:47:19 [debg:python.modulev1] Reading metadata of python module: unicode_emoji
04:47:19 [info:python.modulev1] Loading /usr/share/albert/org.albert.extension.python/modules/unicode_emoji
04:47:25 [debg:python.modulev1] Reading metadata of python module: units
04:47:25 [info:python.modulev1] No 'units' in $PATH.
04:47:25 [debg:python.modulev1] Reading metadata of python module: vpn
04:47:25 [debg:python.modulev1] Reading metadata of python module: wikipedia
04:47:25 [debg:python.modulev1] Reading metadata of python module: window_switcher
04:47:25 [info:python.modulev1] No 'wmctrl' in $PATH.
04:47:25 [debg:python.modulev1] Reading metadata of python module: xkcd
04:47:25 [warn:python.modulev1] [xkcd] Invalid version format: ''. Expected '^(\d)\.(\d)\.(\d)$'.
04:47:25 [debg:python.modulev1] Reading metadata of python module: youtube
04:47:25 [debg:python.modulev1] Reading metadata of python module: zeal
04:47:25 [info:python.modulev1] No 'zeal' in $PATH.
04:47:25 [debg:core] org.albert.extension.python loaded in 6675 milliseconds
04:47:25 [info:core] Loading extension org.albert.extension.system
04:47:25 [debg:core] org.albert.extension.system loaded in 107 milliseconds
04:47:25 [info:core] Loading extension org.albert.extension.terminal
04:47:25 [debg:core] org.albert.extension.terminal loaded in 1 milliseconds
04:47:25 [info:core] Loading extension org.albert.extension.websearch
04:47:25 [info:term] Indexing $PATH.
04:47:25 [debg:core] org.albert.extension.websearch loaded in 0 milliseconds
04:47:25 [debg:term] Finished indexing $PATH.
04:47:26 [info:core] Checking last used version
04:47:26 [info:core] Creating IPC server
04:47:26 [info:core] Entering eventloop
04:47:26 [info:applications] Indexed 3086 files in 484 directories.
04:47:26 [info:apps] Indexed 108 applications.
Alaskra commented 2 years ago

Is there any body work on it? Maybe I can try to fix it.

ManuelSchneid3r commented 2 years ago

@Alaskra You could help debugging. The current assumption is that the icon shipped is not compliant to some standards. To support this thesis you could take an icon of another application that works as a tray icon an replace the albert.svg and look if it is displayed.

Alaskra commented 2 years ago

It seems to the qt's bug, I have comment here.

Alaskra commented 2 years ago

This solution can work, and I guess the origin way

QIcon(XDG::IconLookup::iconPath({"albert-tray", "albert"}))

have "*.svg" appears in icon path and trigger the qt bug.

ManuelSchneid3r commented 2 years ago

Ain't this the current solution? No time to browse the code atm.

Alaskra commented 2 years ago

In my opinion, the best way to fix is changing svg to png.

ManuelSchneid3r commented 2 years ago

This is not a fix, but a one way workaround. Replacing the png by a svg, it can't be modified in future. The png is fixed size 102*102. Which is already to low res for most of the system. Rescaling introduces artifacts.

Using a lookup instead of the embedded resources makes sense though, but still at that point this should have been done already for the application icon on app initialization. The latter is what should actually be used.

Alaskra commented 2 years ago

The latter is what should actually be used.

No, Icon::fromTheme method haven't been used in the current code. I will update the pull later.

ManuelSchneid3r commented 2 years ago

Th PR should change nothing. The lookup uses the same file unless there is some icon theme installed which provides other images

Alaskra commented 2 years ago

But it actually take effort in my computer. And as the comment say, fromTheme is can solve the problem.

mindbound commented 2 months ago

I am still having the same issue with Albert 0.25.0, Qt 6.7.0, KDE 6.4.0, Plasma 6.1.3.