

Spotify implements MPRIS interface so commands like these should work:ĭbus-send -print-reply -dest= /org/mpris/MediaPlayer2. To exec dbus-launch -exit-with-session openbox-session On minimal systems it might be required to launch the desktop environment or window manager through dbus-launch -exit-with-session (provided by dbus-x11). How to install Spotify on Ubuntu 22.04 Step 1: Update System packages Step 2: Install Spotify Step 1: Open the Ubuntu Software Centre Step 2: Search for.

# The spotify package is currently broken and installs files owned by uid 1000, fix itĭpkg -L spotify-client | sudo xargs chown -no-dereference root:rootĬontrolling playback using MPRIS D-Bus interface Install Spotify sudo apt install spotify-clientĬurl -sSf | gpg -dearmor | sudo tee /etc/apt/keyrings/spotify.gpg > /dev/nullĮcho "deb stable non-free" | sudo tee /etc/apt//spotify.list Update list of available packages sudo apt update If you prefer to launch the Spotify application using the icon on Ubuntu, here are the steps: Click on the Activities button in the top left corner of the screen. NB: You will need to install dirmngr if not already installed sudo apt install dirmngrĪdd the Spotify repository signing key to be able to verify downloaded packages curl -sS | gpg -dearmor | sudo tee /usr/share/keyrings/repository-spotify-com-keyring.gpg >/dev/nullĪdd the Spotify repository echo deb stable non-free | sudo tee /etc/apt//spotify.list Launch Spotify with Snap Command: Open the terminal and enter the following command to launch Spotify: snap run spotify. Using third-party repositories as recommended below is not supported by the Debian project and could break your system now or when you upgrade later.
