Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

[issue][SOLVED] Spotify uses fallback icon in MPRIS notification

[issue][SOLVED] Spotify uses fallback icon in MPRIS notification

Operating System

Arch Linux, Gnome 46

 

Solution

spotify will display an appropriate icon if its `.desktop` file, as well as the  `name=`, `icon=` fields of said file, all have the exact same name (e.g. `spotify`). Some distro's ship a `.desktop` file were this is not the case.

My Question or Issue (OLD)

The recently released Gnome 46 now shows the application's icon and title next to it's respective MPRIS notification (see screenshot below). Handy!

However, Spotify currently shows the "fallback" or "default" icon in this context, at least on my end (with Spotify installed from the  AUR, which in turn retrieves the official .deb from here). My guess is that this happens because spotify currently doesn't tell MPRIS which icon it wants to use, though  then again, MPRIS/Gnome might be  inferring this from another piece of information (will report back if I ever find this out).

In support of this conjecture,  running `notify-send Test "test notification" --icon spotify` shows the correct icon (see screenshot below), which might imply that MPRIS/Gnome's MPRIS server needs to be told which icon to use.

Screenshot from 2024-03-29 14-08-25.png

In the thread about wayland support,  I also saw something about Spotify's app_id not being set correctly:


   Also I was looking at why there's no WMClass associated with the Spotify app       

   when launched through Wayland, it doesn't seem to ever set it's app ID.

WAYLAND_DEBUG=1 spotify --ozone-platform=wayland

```

[ 5830.953] -> xdg_toplevel.set_app_id("")
[ 5830.955] -> xdg_toplevel.set_title("Spotify")

```

The app ID needs to be set so the compositor can associate the window with the relevant desktop file, and grab the app's name and icon.

 

Maybe that making spotify more of first class Wayland citizen will automatically solve this issue?

 

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random