Skip to content

Instantly share code, notes, and snippets.

@greew
Last active July 29, 2023 16:50
Show Gist options
  • Save greew/f7c219e4b45390151de16e93b9cfa5ff to your computer and use it in GitHub Desktop.
Save greew/f7c219e4b45390151de16e93b9cfa5ff to your computer and use it in GitHub Desktop.
Fix Spotify stuck in full screen (Ubuntu) installed from snap

Problem: I experienced Spotify being stuck in full screen mode. The title bar with minimize, maximize and close wasn't present and no keyboard shortcut I know about would exit full screen.

Solution:

@mastier has improved the solution - see here

Solution (old):

rm ~/snap/spotify/current/.config/spotify/prefs

Works both in 18.04.01 and 20.04.x

Source: https://community.spotify.com/t5/Desktop-Linux/Full-screen-under-Ubuntu-18-04/m-p/4546981/highlight/true#M16717 (Even though this didn't fix the problem for the author, it worked for me)

@gabocles
Copy link

gabocles commented Nov 7, 2022

thanks @mastier . Worked just fine for me. Ubuntu 22.04 here. Cheers!

@PietroFantini
Copy link

indow.posi

thanks

@0penSrc
Copy link

0penSrc commented Mar 30, 2023

You are the goat. Thank you!

@Ortega-Dan
Copy link

Just sharing a one line script or function fix, doing what all others shared here:

I've saved it in my path and just run it whenever the situation presents, sharing in case it simplifies the adjustment for others:

#! /bin/bash
sed -i "/\b\(app.window.position\)\b/d" -- $HOME/snap/spotify/current/.config/spotify/prefs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment