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)

@vspedr
Copy link

vspedr commented Nov 16, 2020

+1, worked for me as well!

@leoheck
Copy link

leoheck commented Feb 5, 2021

Thanks, my prefs file on Linux (Ubuntu) was here ~/.config/spotify/prefs

@jonathanpmartins
Copy link

jonathanpmartins commented Mar 14, 2021

I removed everything in the file and just left the credentials. Works like a charm! Thanks

@AimanAlmureish
Copy link

Thank you so much this was a fix to my problem! I was trying to remove ~/.config/spotify/prefs this directory coz all solutions were like this! But yours is working perfectly!

@studzin-sky
Copy link

So easy! TY

@OleHalvor
Copy link

+1 thanks

@Kasazn
Copy link

Kasazn commented Feb 7, 2022

Thank you very much! Worked flawlessly!

@dexxmd
Copy link

dexxmd commented Feb 10, 2022

Works on Ubuntu 19.10, spotify from snap.
Thank You!

@johnnichev
Copy link

+1 worked on ubuntu 20.04

@mastier
Copy link

mastier commented Apr 26, 2022

I got Spotify from snap, so the prefs are in ~/snap/spotify/current/.config/spotify/prefs

The culprit was removing this options

app.window.position.saved=true

@greew
Copy link
Author

greew commented Apr 27, 2022

I got Spotify from snap, so the prefs are in ~/snap/spotify/current/.config/spotify/prefs

The culprit was removing this options

app.window.position.saved=true

Thanks! Great to know! :)

@Ortega-Dan
Copy link

Ortega-Dan commented May 7, 2022

Thank you. Incredibly annoying feature.

And thank you @mastier This is the less intrusive fix. 👍 🚀

I got Spotify from snap, so the prefs are in ~/snap/spotify/current/.config/spotify/prefs

The culprit was removing this options

app.window.position.saved=true

@braekevelt
Copy link

Thanks! Work perfectly on Ubuntu 22.04.

@bayological
Copy link

I got Spotify from snap, so the prefs are in ~/snap/spotify/current/.config/spotify/prefs

The culprit was removing this options

app.window.position.saved=true

Thank you. This worked for me on Ubuntu 22.04.

@cpsyctc
Copy link

cpsyctc commented Jul 30, 2022

For me too (Ubuntu 22.04.01 LTS on AMD, GNOME 42.2 and /etc/gdm3/custom.conf WaylandEnable=false (i.e. Xorg at the moment). Thanks, that was really irritating.

@isaacyakl
Copy link

Just upgraded to Ubuntu 22.04.1 and had the same issue. I removed everything except for "autologin" information and it fixed the issue for me.

@tiff413
Copy link

tiff413 commented Nov 2, 2022

Removing app.window.position.saved=true from ~/snap/spotify/current/.config/spotify/prefs worked for me! Thanks

@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