Hi,
Can you release a linux package with ozone support built so that we can use the client under Wayland? There have been posts requesting this in the past because it is highly anticipated.
It shouldn't be that complicated it seems:
https://www.collabora.com/news-and-blog/blog/2019/05/08/cef-on-wayland-upstreamed/
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/ozone_overview.md
Best,
With recent versions, ozone flags work, though without them Spotify still runs through XWayland by default.
Though I can (kinda) justify that – when Spotify is running through Wayland, KDE Plasma's media player detector doesn't detect Spotify, so I can't use my laptop's hardware media keys to control it (Play, Stop, Previous, Next).
Hi StarterX4, this is weird behaviour since media player detector is based on DBUS/MPRIS, which has no relation to X11 or Wayland. Are you sure it isn't a Plasma problem? I am a KDE/Plasma user myself, though not over Wayland. If I have the time, I will try to run Wayland and test it
I checked just now on a KDE Neon setup, installed the Snap version and running bot with and without:
spotify --enable-features=UseOzonePlatform --ozone-platform=wayland
Along with confirming with xeyes and xwininfo for when it is running in wayland or xwayland.
Can confirm that MPRIS, or at least KDE's Media Player widget, doesn't detect that Spotify is playing anything when it's running on Wayland, but it was able to detect it correctly when running on xwayland (again, confirmed with xeyes and xwininfo).
Might be a KDE Neon issue, I don't know, I don't have a Kubuntu setup to test it there.
I run it with Wayland and confirm the problem as described by StarterX4 and Feng_Lengshun. I have to take a look on how KDE's media player work, to know if the problem is not at their side
Using 1.2.11.916.geb595a67 on Ubuntu 23.04, modifying the /usr/share/applications/spotify.desktop to the following:
Exec=spotify --enable-features=UseOzonePlatform --ozone-platform=wayland %U
1) It does save window resize on restarts
2) pull down menus in Settings flicker for 1ms and dissappear
3) the window framing is Windows XP-like
Same. Wayland is working fine but I also have this ugly Windows Vista / 7 looking titlebar.
I actually do remember Chrome using this exact same UI for custom themes at some point - regardless of the operating system, whether it being Windows 7, 8, 10 or even Linux. If you had the default interface it was using the default UI window decorations, but as soon as you used a custom Chrome theme it switched to this one. They fixed it at some point to use the native provider but apparently CEF still bundles it.
I also have the same issue with <select> elements.
Using Spotify's flatpak with a modified desktop entry, on GNOME 44.4 with ArchLinux.
Hi all, the media player problem when running in Wayland that was reported by StarterX4 and Feng_Lengshun has been fixed. The next test/experimental versions should contain the fix
Given that a test/experimental build was hinted at, with enough googles I was able to find that there's a testing ppa, thanks Spotify /s
I modified my /etc/apt/sources.list.d/spotify.list from:
deb http://repository.spotify.com stable non-freedeb http://repository.spotify.com testing non-free
Using xeyes I can see it's still not trying wayland, so I had to re-edit the .desktop file to re-add
Exec=spotify --enable-features=UseOzonePlatform --ozone-platform=wayland %Usince the upgrade reset the .desktop file.
xeyes now confirms its successfully on wayland again, and the settings menu now works fine for me. I still get the Windows XP wrapper around it and on Gnome 44 I still get an unrecognized icon on launch (I believe this is due to the modification of the .desktop file).
While I do appreciate that Spotify is doing a native Linux client and publishing the debians, I'm also paying for a premium family plan, so I'm not some freeloading unwashed internet rando stallman-wannabe trimming my toenails on stage.
Hi Phiro69, version 1.2.20 was released as Edge at Snap, and Unstable at the Deb repo. This fixes the media player issue in Wayland, and adds the tray icon support. Please not that it's still experimental, and might require few adjustments. From now on I will try to release a new version monthly. Also, I plan to take a look at the Wayland detection next time I'm given some time. But again, no promises.
Because Spotify didn't have tray icon for so long I moved to pining it to taskbar. Now I have two Spotify icons which is just redundant (the one pinned to KDE's taskbar has options like play next, previous etc which makes it much more useful). Make try icon optional please.
The drop down menu in Settings is still unusable in the latest version(1.2.20).
Besides, Spotify uses CEF as its GUI framework which shares some commons with Electron. So I tried passing the argument `--enable-wayland-ime` to enable input method support for Spotify on wayland, but it makes no difference. It would be better if input method is usable on wayland.
UPDATE 2023/10/06
Spotify works with `enable-wayland-ime` parameter.
Thanks, I'm on 1.2.20.1210 now, with
Exec=spotify --enable-features=UseOzonePlatform --ozone-platform=wayland %U
in /usr/share/applications/spotify.desktop,
What isn't working for me:
1) I still get the Windows XP framing
2) While the Settings menu looks good, no pulldowns inside of Settings work. I see the pulldown flash in the very upper left of my usable desktop for about ~50 ms, however long the open & close animation takes.
3) The running dock icon still isn't recognized as Spotify
What works for me:
1) Media keys work great (Ubuntu 23.04)
2) I do see Chrome is upgraded to 115, that's an improvement 🙂
I see. As a solution, I am considering to only show the tray icon when the option "Close button should close to the Spotify icon". Would this work with your own tray icon?
There is already "Close button should minimize the Spotify window" option. I think that it would make sense to show new tray icon only when this option is checked.
Hey no4b. I also thought at first that "Close button should minimize... " would be used for that. But strictly speaking, this option is about the close button behavior. Also, in this first implementation I simply mimicked the Windows client behavior. Still, we in the Linux client can take decisions independently. So, I have already brought this point. And few others, such as adding "play/pause", "forward", etc at the tray icon. You can keep on posting your opinions, I'll bring them to the discussions
The code that makes the tray icon optional was merged today. It will be available in the next unstable release, in about 2 weeks
Please make the X11 libraries optional. Workaround for now:
https://community.spotify.com/t5/Desktop-Linux/Wayland-support/m-p/5320462/highlight/true#M20892
Version 1.2.22 was released today to Unstable/Debian and Edge and Candidate/Snap. I makes the tray icon optional to the "Close button should minimize the Spotify window" setting.
Thank you 🙂
Hi @pgomes,
First of all, thank you for working on the Linux Spotify client! I never thought that we would get official Wayland support at some point.
One small bug report: I noticed that the Spotify icon is not shown in the Dash-to-Dock extension, which is used by Manjaro by default.
I've noticed this problem for a few Chromium-based native Wayland apps.
It only appears when you start Spotify with the Wayland-specific flags. Without them, the Icon is correctly shown.

AFAIK this is an issue with Chromium (and so, electron) apps on Wayland in general. I tried running Chrome in true Wayland (not XWayland) and it has a generic Wayland icon. It's an issue with Wayland generally, and DtD likely have some issues handling that, using a wrong icon similar to how Steam can bug out with the wrong window title.
(I run with `flatpak run --branch=stable --arch=x86_64 --command=chrome --file-forwarding com.google.Chrome --enable-features=UseOzonePlatform,Vulkan,WebRTCPipeWireCapturer,VaapiVideoDecoder,WaylandWindowDecoration,VaapiVideoEncoder,UseSkiaRenderer,WebUIDarkMode --enable-unsafe-webgpu --enable-gpu --ozone-platform=wayland --force-dark-mode` to be exact)
You can try adding this line `StartupWMClass=spotify` to the desktop file to see if it helps.
Hi all, the icon problem in Wayland is known, and as I mentioned here, it depends on a fix from the underlining graphical library. I am still waiting a reply from them
Your link in your last post seems to be broken (at least for me). Would you be able to fix it?
In an addition to the Wayland icon problem, with non-integer scaling (I use 1.25x and this is the main reason I'd like Spotify to run natively on Wayland), the application seems to think the cursor is in a different place as to where it actually is making the UI extremely difficult to use. Does anyone else have this problem?
The link is also broken for me, probably I made some mistake. Here's the thread about the Wayland icon
I will try non-integer scaling soon to see if I can reproduce it. But if there's actually such bug, this is likely to be something inherited from Chromium. Can you confirm that the same happens with Chromium?
I think there's a confusion about two different icon issues here. The thread you link is about the tray icon. However the posts in this thread (and the issue I was referring to in my above post) is about the taskbar icon. When launching Spotify on Wayland, the icon is a generic one, e.g. on my desktop environment (KDE Plasma):
Generic Wayland taskbar icon.
In many DEs, if it can't determine the taskbar icon for a window, you can sometimes fix this by adding the `StartupWMClass=<name>` to the desktop file which matches the icon in there to windows with the `<name>` window class. Unfortunately the window class is null. There isn't a good way to do this that's DE-independent so on KWin (KDE Window manager) I used the command `qdbus org.kde.KWin /KWin queryWindowInfo` and clicked on the Spotify Wayland window which prints information including the line `resourceClass: `. Most other windows have this filled e.g. for Chromium, it's `resourceClass: chromium-browser`.
WRT non-integer scaling with Chromium, I don't have the same problem and everything is good there (including the Spotify web player). This is with v118.0.5993.
I reloaded my work machine with Mantic Minotaur (23.10) over the weekend and spotify-client debian is reliant on a library that was apparently removed over the summer:
spotify-client : Depends: libgconf-2-4 but it is not installable
So, I'm now using the web client installed as an app on chrome-stable 😕
Not asking for a fix in this thread (since this is ostensibly about Wayland support in the debian), I'm just giving this out as a PSA/heads up to anyone thinking of a fresh install of Mantic.
Hey Phiro69, thanks for the info. Indeed the DEB package required libgconf-2-4, which is deprecated since Mantic. I am checking now how to no longer depend on such package. From a preliminary look, it seems possible with not much effort
I see 1.2.25.1011 is available, I was able to install it just fine on Mantic (23.10), and I see it has Chrome 118 in it. After enabling Wayland via the desktop shortut, the same three issues I noticed on the prior Spotify build under Lunar (23.04) still exist:
1) I still get the Windows XP framing
2) While the Settings menu looks good, no pulldowns inside of Settings work. I see the pulldown flash in the very upper left of my usable desktop for about ~50 ms, however long the open & close animation takes.
3) The running dock icon still isn't recognized as Spotify
However it runs natively under Mantic and that's the best xmas present I could have asked for, after using the web client the last few weeks. Thank you!!
PS the web client isn't horrible, kudos to that team, they do a very good job; the fatty client is just a better experience if you have a device that can run it.
ok, got it to work with the ozone flags but same as others the client is drawing a very ugly windows like header bar.