jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.28k stars 323 forks source link

App launcher on Linux opens a new icon #649

Open DireMunchkin opened 6 months ago

DireMunchkin commented 6 months ago

Describe the bug Since version 1.10 there was a change in the behavior of the app launcher. I used to be able to pin the app launcher and once the program is open I can click or use Super+\<n> hotkey to switch to it. Now the app launcher opens a new icon, which cannot be pinned.

To Reproduce Steps to reproduce the behavior:

  1. Pin the Jellyfin launcher to task bar on Linux, w Cinnamon.
  2. Click on it.
  3. Minimize the app window.
  4. Click on it again.

Expected behavior I expect the window to be raised or focused, instead it does nothing.

Screenshots Screenshot from 2024-05-18 18-51-49

Desktop (please complete the following information):

7system7 commented 6 months ago

Same here.

OS: Arch Linux x86_64 
Kernel: 6.9.1-arch1-1 
DE: GNOME 46.1 
WM: Mutter 

image

rafalb8 commented 4 months ago

This is caused by this change 7f72a3e9ff9df7d02d27d02496355944289d9bfe. Here StartupWMClass was updated, but running

xprop WM_CLASS

shows WM_CLASS(STRING) = "jellyfinmediaplayer", "Jellyfin Media Player"

M4dMikel commented 3 weeks ago

There is a pull request that should fix this Issue: https://github.com/jellyfin/jellyfin-media-player/pull/771

(credit goes to https://github.com/solidsnake1298 for creating it)