librepods icon indicating copy to clipboard operation
librepods copied to clipboard

[Linux] --start-minimized still shows "unknown" window in GNOME app switcher

Open villa1337 opened this issue 4 months ago • 1 comments

Description

When running LibrePods with --start-minimized on GNOME (Wayland), the app correctly starts with only the tray icon visible. However, an "unknown" window still appears in the GNOME app switcher (Alt+Tab).

Environment

  • OS: Fedora 44
  • DE: GNOME (Wayland)
  • GPU: NVIDIA RTX 5070 (proprietary driver 595.80)
  • LibrePods version: v0.1.0 AppImage (linux-v0.1.0 release)
  • Launch command: WGPU_BACKEND=gl librepods-x86_64.AppImage --start-minimized
  • Note: WGPU_BACKEND=gl is required because Vulkan crashes with ERROR_SURFACE_LOST_KHR on this setup

Expected Behavior

When started with --start-minimized, the app should only show the system tray icon with no window in the app switcher.

Actual Behavior

A window labeled "unknown" appears in the GNOME app switcher. The tray icon works correctly.

Possible Cause

The GPU rendering surface (wgpu/EGL window) is likely being created even in minimized mode. On GNOME Wayland, any mapped surface — even hidden — appears in the app switcher unless the appropriate window type hints are set or the surface is not created at all.

Suggested Fix

In --start-minimized mode, either:

  1. Don't create the GPU surface until the user explicitly opens the window from the tray
  2. Set the window role/type so GNOME excludes it from the switcher
  3. Unmap/destroy the surface after initialization if running headless

villa1337 avatar Jul 08 '26 17:07 villa1337

Could you give this a try?

https://github.com/librepods-org/librepods/actions/runs/25080113527

kavishdevar avatar Jul 08 '26 18:07 kavishdevar