Steam Deck Web App Generator
SPOTIFY ON STEAM DECK

Listen to Spotify on Steam Deck while you play

By ยท

There is no Spotify button in Game Mode, but Spotify runs on the Deck in two ways: as a Linux app from the Discover Software Center, or as Spotify's web player in Chrome. Once either is in your library, you can start a playlist, launch a game and keep the music going.

Option 1: the Spotify app from Discover

  1. Press STEAM, open Power and choose Switch to Desktop. The Desktop Mode guide explains the controls.
  2. Open the Discover Software Center, search for Spotify and press Install.
  3. Open Spotify on the desktop once and log in. STEAM + X brings up the keyboard.
  4. In the Steam client, click Add a Game, then Add a Non-Steam Game, tick Spotify and click Add Selected Programs.
  5. Double-click Return to Gaming Mode. Spotify is in your library under Non-Steam.

Two things to know about this version:

  • Flathub labels the Spotify flatpak (com.spotify.Client) as community-provided: it is not verified by, affiliated with or supported by Spotify.
  • Spotify's own Linux download page calls Spotify for Linux a spare-time project of its engineers and says Linux is not a platform Spotify actively supports, so the app may behave differently from the Windows and Mac versions.

Option 2: the Spotify web player in Chrome

Spotify's web player help page lists Chrome, Firefox, Edge and Opera as supported desktop browsers. With the Chrome flatpak from Discover (see installing Chrome on Steam Deck), the generator turns open.spotify.com into its own Game Mode shortcut that opens full screen:

  1. In Game Mode, press the STEAM button, open Power and choose Switch to Desktop.
  2. Install Google Chrome from the Discover Software Center if you don't have it yet. The generated script starts the Chrome flatpak (com.google.Chrome), which is the version Discover installs.
  3. Open the generator in a browser on the Deck. Enter https://open.spotify.com as the Site URL and Spotify as the App Name. Leave Use ~/Documents as default folder switched on.
  4. Press Generate script, then Download .sh. The file is saved as spotify.sh.
  5. Open Konsole in the folder you downloaded it to and run:
    chmod +x spotify.sh
    ./spotify.sh
    The script writes a small launcher, ~/Documents/Spotify.sh, makes it executable and hands it to steamos-add-to-steam, which adds it to your Steam library as a non-Steam game.
  6. Double-click Return to Gaming Mode on the desktop. The shortcut is in your Library under Non-Steam, listed as Spotify.sh. You can rename it in the shortcut's Properties.
  7. Launch it. Chrome opens https://open.spotify.com full screen in kiosk mode, with no tabs, address bar or scrollbars. To close it, press STEAM and choose Exit Game.

Before you run it

  • The App Name becomes the launcher's file name, so spaces and apostrophes are fine but a slash is not.
  • Leave ~/Documents/Spotify.sh where it is. The Steam shortcut points at that file.
  • The launcher uses your normal Chrome profile, so a site you sign in to in Chrome on the desktop is still signed in when you open the shortcut in Game Mode. Inside Game Mode, STEAM + X brings up the on-screen keyboard.
  • The script does not set a controller layout. Pick one in the shortcut's controller settings. Microsoft's and NVIDIA's own Steam Deck guides both use the Gamepad with Mouse Trackpad template for their browser and app shortcuts, which gives you a pointer on the trackpad.

If the web player shows a message that playback of protected content is not enabled, Spotify's help page gives the Chrome fix: open chrome://settings/content, select open.spotify.com and set Protected content IDs to Allow or Default. Do it once in Chrome on the desktop; the shortcut uses the same Chrome profile, so it keeps the setting and your login.

Music while you play

Valve's Desktop FAQ says you can run a desktop app at the same time as a game, and lists listening to music as one of the reasons to do it. In Game Mode:

  1. Launch Spotify, or your Spotify shortcut, from the library and start a playlist.
  2. Press STEAM, go to your library and launch the game. The music keeps playing.
  3. To skip a track or pause, press STEAM. Spotify is in the left-hand menu next to the game.

The game's own music plays on top of Spotify, so turn it down in the game's audio settings if the two clash.

App or web player?

  • The app is one install from Discover and opens like any desktop program, but it is a community package of a client Spotify does not actively support on Linux.
  • The web player is on Spotify's supported browser list, needs Chrome plus one setting, and opens full screen without tabs or an address bar.

Both play the same account. If one of them misbehaves after an update, the other is a quick fallback.

Questions

Can you get Spotify on Steam Deck?

Yes. Install Spotify from the Discover Software Center in Desktop Mode, or use Spotify's web player at open.spotify.com in Chrome. Either can be added to the Game Mode library.

Can I listen to Spotify while playing a game on Steam Deck?

Yes. Valve says you can run a desktop app at the same time as a game and names listening to music as an example. Start Spotify, press play, then launch the game from your library.

Is the Spotify app on Discover made by Spotify?

No. Flathub labels the Spotify flatpak a community-provided package that is not verified by, affiliated with or supported by Spotify. Spotify also says on its own Linux page that Linux is not a platform it actively supports.

Why does the Spotify web player say playback of protected content is not enabled?

Spotify's help page says the web player needs protected content turned on. In Chrome, open chrome://settings/content, choose open.spotify.com and set Protected content IDs to Allow or Default.