Spotify - Minimized to systen tray is not working!

Hello everyone!

Even though Spotify got an option to minimize to the system tray, it is not working! Now when I close Spotify, it closes and stops playing.

Any solution?

Thanks

There are more than one way to install Spotify.
Could you tell me how you installed it?
Apt or Flatpak or Snap?

1 Like

Thanks for the reply.

I installed it via Snap.

1 Like

It looks like the cause of this problem.
Snap and FlatPak apps are running in a sandbox environment which behaves rather differently from the traditional apt packages.

I also uses Spotify but I always install apt package.

curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

Then

sudo apt-get update && sudo apt-get install spotify-client

1 Like

Nothing happens after: sudo tee /etc/apt/sources.list.d/spotify.list

Did you issue the commands one line at a time?

curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -

echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

[edit]
Do not forget to remove SNAP version of Spotify

Seems I'm doing something wrong?

I added all 4 lines one by one as follows:

akhil@akhil-HP-ENVY-Laptop-13-ah0xxx:~/Desktop$ curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBF9XbJMBEADQ/wu6dd7akoE1PrL6WpARdhoHjt2OU5Uj4H2vy2YWuEB8aaqX
+wjMVAAiyf2jz2gJnXnwqcfjRf9hsw9lNh/4llVLL5gI3E/ZtKcOELsm+50/93zT
Ei3THAGylNMylDeBwAzPKnBjMpW40OKbjnq16IZ+jexkvLWhkf9iA0AvkQQ0lgX2
IBJzE2ab+doE3D92R33mnvNjIKqHRNtwV5M/F1jL1rr/FvOIXcT8txBlen+KP2w9
d1vXYbbx/0ObMbWusGdu/BiA422rpWvzED0jtAucwTEwCb+isoW05mXLvLsjmetF
HDfK/XeTyizNO4w6awdXDTAiBPHeqJ4w5JjoX42VsH38DvW3evXztv/5uLuxNXQK
vDPxaxy/DMNLHv5zJyxxU/weig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1gUQYCjmicCsuoT09E
iYNsp2rx/vs5JJgATd0ri3T5QborulPsN4ODXZBUDdry2QeuHCF91HBDsuF2ks0N
6HC1hKCQCAw+TS00sV5Cg/sPq6SPtOcqq/brX+zIqY0=
=8BS2
-----END PGP PUBLIC KEY BLOCK-----
akhil@akhil-HP-ENVY-Laptop-13-ah0xxx:~/Desktop$ sudo apt-key add -echo "deb http://repository.spotify.com stable non-free"
[sudo] password for akhil:
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /tmp/apt-key-gpghome.fACaxVqnOl
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Syntax: gpg [options] [files]
Sign, check, encrypt or decrypt
Default operation depends on the input data

Commands:

-s, --sign make a signature
--clear-sign make a clear text signature
-b, --detach-sign make a detached signature
-e, --encrypt encrypt data
-c, --symmetric encryption only with symmetric cipher
-d, --decrypt decrypt data (default)
--verify verify a signature
-k, --list-keys list keys
--list-signatures list keys and signatures
--check-signatures list and check key signatures
--fingerprint list keys and fingerprints
-K, --list-secret-keys list secret keys
--generate-key generate a new key pair
--quick-generate-key quickly generate a new key pair
--quick-add-uid quickly add a new user-id
--quick-revoke-uid quickly revoke a user-id
--quick-set-expire quickly set a new expiration date
--full-generate-key full featured key pair generation
--generate-revocation generate a revocation certificate
--delete-keys remove keys from the public keyring
--delete-secret-keys remove keys from the secret keyring
--quick-sign-key quickly sign a key
--quick-lsign-key quickly sign a key locally
--sign-key sign a key
--lsign-key sign a key locally
--edit-key sign or edit a key
--change-passphrase change a passphrase
--export export keys
--send-keys export keys to a keyserver
--receive-keys import keys from a keyserver
--search-keys search for keys on a keyserver
--refresh-keys update all keys from a keyserver
--import import/merge keys
--card-status print the card status
--edit-card change data on a card
--change-pin change a card's PIN
--update-trustdb update the trust database
--print-md print message digests
--server run in server mode
--tofu-policy VALUE set the TOFU policy for a key

Options:

-a, --armor create ascii armored output
-r, --recipient USER-ID encrypt for USER-ID
-u, --local-user USER-ID use USER-ID to sign or decrypt
-z N set compress level to N (0 disables)
--textmode use canonical text mode
-o, --output FILE write output to FILE
-v, --verbose verbose
-n, --dry-run do not make any changes
-i, --interactive prompt before overwriting
--openpgp use strict OpenPGP behavior

(See the man page for a complete listing of all commands and options)

Examples:

-se -r Bob [file] sign and encrypt for user Bob
--clear-sign [file] make a clear text signature
--detach-sign [file] make a detached signature
--list-keys [names] show keys
--fingerprint [names] show fingerprints

Please report bugs to https://bugs.gnupg.org.
OK
akhil@akhil-HP-ENVY-Laptop-13-ah0xxx:~/Desktop$ sudo tee /etc/apt/sources.list.d/spotify.list

Please copy the command I gave above and run it one by one.
There should be 3 commands in total.

One command to add PGP key.
One command to add repository.
One command for installation.

I did as per your instruction. It seems didn't install.

You could also try installing from a deb file:

https://pkgs.org/download/spotify-client

1 Like

Hi, I've tested it myself that Spotify option, also not working here. I would say it's a gnome issue, considering you are using the default gnome. The strange thing is that other apps work fine, like dropbox or flameshot
more info here Re: Cannot minimize to tray on Linux - The Spotify Community

I can minimize my Spotify (apt install) without any issue.
I use GNOME desktop in Zorin 16.

ditto. But I also uses apt get to get it to avoid snap/flat

Has the OP removed the Snap package prior to installing it via apt?

Sorry, maybe I was not clear enough, minimize works fine, but it doesn't move to system tray when you close the window. Btw, I have the .deb installed, not Snap nor flatpak pkgs

Did you add Spotify to your Favorite?

Good point.
@akhil
Did you uninstall SNAP version of Spotify before attempting Apt install?

If I add it to Favorites what happens is the Spotify icon stays in the left side of the taskbar but not running. Going into the system tray, the icons in the right end of the taskbar, means spotify should be running in the background without the need to have a window active, pretty much like windows or mac Os.

I am using Zorin16 Pro with a Mac like design.
It is difficult for me to visualize what you have described.
Any chance for the screenshot?

Sure!