Manjaro Difference between revisions of "Spotify"

Difference between revisions of "Spotify"

From Manjaro
imported>FadeMind
m (kde note)
imported>Woqer
Line 12: Line 12:


= Installing Spotify Linux Preview =
= Installing Spotify Linux Preview =
== NEW installation guide ==
Install libgcrypt15 from AUR repositories, the official version in manjaro (update 2014-01-26) is 1.6, not compatible with spotify. We will need also some openssl package.
yaourt -S openssl098
yaourt -S libgcrypt15
Then install spotify from AUR and ffmpeg-compat (recommended dependency, needed for playing local files)
yaourt -S spotify
sudo pacman -S ffmpeg-compat
Now we need to link some libraries
sudo ln -s /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
sudo ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d
sudo ln -s /usr/lib/libsmime3.so /usr/lib/libsmime3.so.1d
sudo ln -s /usr/lib/libssl3.so /usr/lib/libssl3.so.1d
sudo ln -s /usr/lib/libplds4.so /usr/lib/libplds4.so.0d
sudo ln -s /usr/lib/libplc4.so /usr/lib/libplc4.so.0d
sudo ln -s /usr/lib/libnspr4.so /usr/lib/libnspr4.so.0d
sudo ln -s /usr/lib/libudev.so /usr/lib/libudev.so.0
And that's it! If you are using Xfce (it should work for other environments also), the way to configure media keys is via xfce shortcuts, using dbus commands (in order: play/pause, stop, next, previous)
{{note|If your system does not detect the media keys, their names are (in order) XF86AudioPlay, XF86AudioStop, XF86AudioNext, XF86AudioPrevious}}
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
== Old installation guide ==
{{note|Alternative install, is deprecated due to last manjaro update of libgcrypt. If your version of libgcrypt is bellow 1.6 you should use this guide}}
{{warning|if your version of libgcrypt is 1.6 or superior, DON'T USE this guide, instead read the NEW one}}


In a terminal, run the following command:
In a terminal, run the following command:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.