Skip to content

KDE Application Tray Desktop File Behaves Weirdly with Godot Games #107990

Open
@Chapien

Description

@Chapien

Tested versions

  • Non-Flatpak 4.4.1

System information

Godot v4.4.1.stable (49a5bc7) - Fedora Linux 42 (KDE Plasma Desktop Edition) on Wayland - Wayland display driver, Single-window, 3 monitors - Vulkan (Mobile) - dedicated AMD Radeon RX 7800 XT (RADV NAVI32) - AMD Ryzen 7 5800X3D 8-Core Processor (16 threads)

Issue description

So, I have Godot pinned to my KDE plasma application panel. This is because I am a game developer who uses Godot a lot, so naturally, I like having it accessible. When launching Godot, there was an issue where the desktop file icon was missing -- no problem, I used application rules to fix it. Now, when launching Godot, the icon briefly manages, before reappearing. This is not like similar issues in other applications where it spawns an entirely new one seperate from the pinned icon; it does indeed remain pinned, and there ends up being only one icon.

Here's where things get... interesting. Because of how the freedesktop standard figures out which desktop file belongs to which Window class, every game/program made in godot is registering as godot. What this ends up manifesting as is this; I will launch a godot program (let's say Wonderdraft in this case). The godot icon will briefly disappear from my tray. The wonderdraft icon will appear, away from my pinned apps as appropriate. A second later, the pinned godot icon will reappear. I speculate this might be because the WMClass of every Godot related project begins with, well, "Godot" instead of the program name. For instance, the WMClass of Wonderdraft seems to be Godot Wonderdraft.

I realize this explanation is probably not the most clear, so feel free to ask for clarifications; it's kind of a hard issue to explain.

Steps to reproduce

  1. Install godot from a source other than the flatpak
  2. Pin the godot editor to the KDE Plasma application launcher/tray
  3. Launch a godot program
  4. Observe the weirdness

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions