lutris / lutris

Lutris desktop client
https://lutris.net
GNU General Public License v3.0
7.94k stars 694 forks source link

No tray icon on KDE Wayland #5657

Open Victor239 opened 1 month ago

Victor239 commented 1 month ago

Bug description

On Kubuntu 24.10 on a X11 desktop the Lutris tray icon is visible. On a Wayland desktop it is not.

I found two related issues with no tray icon on Wayland #4934 #5249 but these are on GNOME desktops, and from what I understand GNOME is deprecating the system tray. This is not the case for KDE, and all my other apps work fine (I've got 10+ apps with system tray icons).

How to Reproduce

Steps to reproduce the behavior:

  1. Launch Lutris
  2. Observe no tray icon

Expected behavior

Tray icon should be visible in KDE Wayland environment, just like it is for X11.

Log output

INFO     2024-10-16 21:35:19,318 [application.do_command_line:479]:Starting Lutris 0.5.17
INFO     2024-10-16 21:35:19,403 [startup.run_all_checks:120]:AMD Radeon 780M (1002:15bf f111:0006 amdgpu) Driver 24.2.3
WARNING  2024-10-16 21:35:19,438 [libretro.get_platform:114]:Game don't have a core set
WARNING  2024-10-16 21:35:19,438 [game.set_platform_from_runner:442]:The Libretro runner didn't provide a platform for Castlevania: Circle of the Moon (libretro)
WARNING  2024-10-16 21:35:19,439 [libretro.get_platform:114]:Game don't have a core set
WARNING  2024-10-16 21:35:19,439 [game.set_platform_from_runner:442]:The Libretro runner didn't provide a platform for Dragon Ball Z: The Legacy of Goku (libretro)
WARNING  2024-10-16 21:35:19,439 [libretro.get_platform:114]:Game don't have a core set
WARNING  2024-10-16 21:35:19,439 [game.set_platform_from_runner:442]:The Libretro runner didn't provide a platform for Men in Black: The Series (libretro)
WARNING  2024-10-16 21:35:19,440 [libretro.get_platform:114]:Game don't have a core set
WARNING  2024-10-16 21:35:19,440 [game.set_platform_from_runner:442]:The Libretro runner didn't provide a platform for The Legend of Zelda: Oracle of Seasons (libretro)
F: Filesystem suffix "ro" is not applicable for --nofilesystem
F: Filesystem suffix "ro" is not applicable for --nofilesystem
DEBUG    2024-10-16 21:35:19,562 [xrandr.get_resolutions:91]:Retrieving resolution list
DEBUG    2024-10-16 21:35:19,565 [xrandr._get_vidmodes:18]:Retrieving 64 video modes from XrandR
DEBUG    2024-10-16 21:35:19,616 [path_cache._update_missing_games:114]:Checking for missing games
DEBUG    2024-10-16 21:35:19,651 [api.check_stale_runtime_versions:52]:Modified at Wed 16 Oct 2024 21:07:35 , will update after Thu 17 Oct 2024 03:07:35 
DEBUG    2024-10-16 21:35:19,668 [lutriswindow.create_runtime_updater_cb:1244]:Runtime up to date
DEBUG    2024-10-16 21:35:20,623 [http._request:88]:POST https://lutris.net/api/users/library?since=1729110844

System Information

Vulkan support: YES
Esync support: YES
Fsync support: YES
Wine installed: YES
Gamescope: NO
Mangohud: NO
Gamemode: NO
Steam: YES
In Flatpak: NO
[System]
OS: Ubuntu 24.10 Oracular Oriole
Arch: x86_64
Kernel: 6.11.0-8-generic
Desktop: KDE
Display Server: wayland
[CPU]
Vendor: AuthenticAMD
Model: AMD Ryzen 7 7840U w/ Radeon  780M Graphics
Physical cores: 8
Logical cores: 16
[Memory]
RAM: 60.6 GB
Swap: 100.0 GB
[Graphics]
Vendor: AMD
OpenGL Renderer: AMD Radeon 780M (radeonsi, gfx1103_r1, LLVM 19.1.0, DRM 3.58, 6.11.0-8-generic)
OpenGL Version: 4.6 (Compatibility Profile) Mesa 24.2.3-1ubuntu1
OpenGL Core: 4.6 (Core Profile) Mesa 24.2.3-1ubuntu1
OpenGL ES: OpenGL ES 3.2 Mesa 24.2.3-1ubuntu1
Vulkan Version: 1.3.290
Vulkan Drivers: AMD Radeon 780M (RADV GFX1103_R1) (1.3.289)

Media (optional)

No response

danieljohnson2 commented 1 month ago

I do not think it matter what desktop you use; we can use whether Gtk.StatusIcon (which does not work on Wayland) or AppIndicators (which does). 0.5.18 will add AyatanaAppIndicator as well. If you don't have any of these, then we can't show the tray icon. The 'Show Tray Icon' preference should no longer appear in that case.

You can try the master branch if you like; download that and run the bin/lutris script within. No need to install it! See if that will show a tray icon. If so, you've got the AyatanaAppIndicator package.

Victor239 commented 1 month ago

Having an issue when trying to run the script Error importing Lutris application module: No module named 'json'. I have got libayatana-indicator3-7 installed though, so if I understand correctly this will be resolved whenever 0.5.18 is released. When is that likely to be?

danieljohnson2 commented 1 month ago

Perhaps you were using FlatPak Lutris? That would not have installed Lutris's dependencies. You could try to install Lutris from your package manager also; that should provide them, even if it's an older Lutris.

But I do think 0.5.18 will likely work for you. I think it is coming soon, but it is up to @strycore.

Victor239 commented 1 month ago

No this is my distribution's Lutris and I'm on Kubuntu.

Oh so it should still have the tray icon on 0.5.17 with the libayatana-indicator3-7 package? Strange, haven't got it nor the Show Tray Icon preference.

danieljohnson2 commented 1 month ago

No, 0.5.17 does not support libayatana-indicator. You need 0.5.18.

It is strange that Lutris works from your repository, but you can't run the master branch's code.

danieljohnson2 commented 3 weeks ago

I really think this is fixed, but can't confirm because @Victor239 can run the master branch for some reason.