[SOLVED] Spotify

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

Re: [SOLVED] Spotify

Postby leamas » Feb 4th, '13, 21:20

Thanks for feedback! Notes:
  • The errors (SEGV on exit, various GTK warnings in terminal) are already reported as some others. See http://community.spotify.com/t5/Desktop ... otifylinux.
  • This installer is basically a non-interactive tool, one important usecase is in a spec file. So, I hesitate to add anything like progress bars to it.
  • The missing icons: still missing after logout-login? They shouldn't be, this is plain gnome library stuff. Or?
-
leamas
 
Posts: 7
Joined: Jan 12th, '13, 07:07

Re: [SOLVED] Spotify

Postby morgano » Feb 4th, '13, 22:03

Thank you for the forum link. I registered and posted :)
Icons showed up after logout-in.
As I added to above post, maybe it should try to install make if i tis not installed; will help less advanced users.
About the download progress, my idea was that maybe wget can be made to output progress like it do when run directly?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1487
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Spotify

Postby leamas » Feb 6th, '13, 14:43

I can't really install anything in this script, it's supposed to be platform-agnostic and thus have no idea how to install things. So I stop with just reporting the missing build dependency.

As for the progress bar, if you provide a patch or pull request on github I'll be happy to merge it, provided it's not used by default (perhaps adding an ''--interactive" option?). Another thing which might be helpful would be to expand the Mageia section in README.md - here you can have detailed instructions how to find and install missing packages. Remember, the script just reports missing commands (build deps) or linker symbols (run time deps, in make install). So the hardest problem is to locate the package.

That said, what Mageia really needs is someone creating a rpm package. It should actually be quite simple, starting with this spec http://leamas.fedorapeople.org/spotify/pending/spotify-client.spec which uses the installer internally. With a rpm package you get what you want, a simple procedure for not so skilled users pulling in all dependencies etc.

Note that Spotify's licensing restrictions currently makes it impossible to re-distribute spotify rpms. What you can do is to publish a simple howto on how to create the package, like the solution in http://community.spotify.com/t5/Desktop-Linux/Fedora-RPM-package-for-F17-F18/td-p/191612
leamas
 
Posts: 7
Joined: Jan 12th, '13, 07:07

Re: [SOLVED] Spotify

Postby doktor5000 » Feb 6th, '13, 21:06

leamas wrote:That said, what Mageia really needs is someone creating a rpm package. It should actually be quite simple, starting with this spec http://leamas.fedorapeople.org/spotify/pending/spotify-client.spec which uses the installer internally. With a rpm package you get what you want, a simple procedure for not so skilled users pulling in all dependencies etc.

I've already downloaded your src.rpm and tried to look at it, but no spare time avaiable until now :(
To answer your other open point, what we could do is to offer the same as for skype, basically a download script and the package is only a wrapper
to install needed dependencies and get the directory structure and .desktop files correct:
http://svnweb.mageia.org/packages/cauldron/get-skype/current/SPECS/get-skype.spec?view=markup

Your .spec and src.rpm should probably be put as a comment into the package request: https://bugs.mageia.org/show_bug.cgi?id=7928
EDIT: Just updated it ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18040
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Spotify

Postby leamas » Feb 6th, '13, 23:17

don't use the src.rpm, it's basically outdated for purposes here. Use the direct link above + instructions in the thread to build rpm from spec.
leamas
 
Posts: 7
Joined: Jan 12th, '13, 07:07

Re: [SOLVED] Spotify

Postby morgano » Feb 7th, '13, 22:46

Licenses file is missing;
In Spotify, selecting menu Help > Show Licenses, i get the popup:
Error -6 when loading url file:///home/morgan/.local/lib/spotify-client/licenses.xhtml

The folder tree is there, but not that specific file.
I do not know if this is installer problem or Spotify
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1487
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Spotify

Postby leamas » Feb 8th, '13, 10:37

This is an installer bug. Could you please file a bug at github?

The quick fix should to symlink the file which lives ~/.local/share/spotify-client to ~/.local/lilb/spotify-client
leamas
 
Posts: 7
Joined: Jan 12th, '13, 07:07

Re: [SOLVED] Spotify

Postby morgano » Feb 10th, '13, 12:31

Quickfix that I confirm is working for me:
(installed using instructions in "Making a user install without root privileges")
$ cd ~/.local/lib/spotify-client
$ ln -s ~/.local/share/spotify-client/licenses.xhtml

Issue posted: https://github.com/leamas/spotify-make/issues/6
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1487
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Spotify

Postby ozky » Feb 23rd, '13, 23:39

That local installed launcher my-spotify is not anymore working from gnome 3 menu,just try to click it and nothing happens it works if i launch it from spotify client folder.So there is nothing wrong in spotify client only in that desktop launcher.
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: [SOLVED] Spotify

Postby leamas » Feb 24th, '13, 02:01

ozky wrote:That local installed launcher my-spotify is not anymore working from gnome 3 menu,just try to click it and nothing happens it works if i launch it from spotify client folder.So there is nothing wrong in spotify client only in that desktop launcher.


As they normally says in this situation: that's odd :)

Could you please file a bug at github (links above) and attach the desktop file?
leamas
 
Posts: 7
Joined: Jan 12th, '13, 07:07

Re: [SOLVED] Spotify

Postby ozky » Feb 24th, '13, 15:48

I added it to github issues page.
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: [SOLVED] Spotify

Postby ozky » Feb 24th, '13, 15:57

I solved it by myself i just edited make file to get bin folder to hidden folder and i did it before that configure command so it's linking it wrongly,now i changed it after that configure command and it's working.
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: [SOLVED] Spotify

Postby hintzy64 » Mar 31st, '13, 15:33

Happy to report another success using leamas' installer on Mageia 2 64-bit! I'd been using the windows version via wine for a while, but was eager to switch to the native linux version since it works so well on my ubuntu machine at work. It's a fair bit more responsive than running it through wine (probably because it's installed to the system partition on my SSD, while wine runs from my HDD, but still...). Thanks so much for your work putting the installer together!
There are 10 types of people in this world: those who understand binary and those who don't.
---
Biostar A770E3, AMD Phenom II X4 975 Black Edition (Quad 3.6 GHz), 8 GB DDR3, Sapphire Radeon Pulse RX 580, 8 GB GDDR5
User avatar
hintzy64
 
Posts: 29
Joined: Oct 29th, '12, 01:50
Location: Maryland, USA

Re: [SOLVED] Spotify

Postby morgano » May 13th, '13, 01:01

Success on mga3RC KDE 64bit :)
And this Linux version 0.9.0.133 do not crash when i drag tune to playlist.

(Leamas, you could update yopur site info of known working systems.)
I want to make a launch icon but did not find one included.
Have i missed it? That could be an addition.
(I can just grab it from somewhere but easier if it was included)
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1487
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Spotify

Postby doktor5000 » Jun 4th, '13, 00:45

Just tried on Mageia 3 x86_64, works just fine, including launcher
Dont forget to run
Code: Select all
make register
;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18040
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Spotify

Postby dtsiamasiotis » Dec 29th, '13, 21:56

I downloaded leamas installer, spotify version 0.9.4.183.g644e24e.428, but I had a few problems with the location of the libraries needed. The first was during the installation when it tries to copy libcef.so from pathA to pathB but the file is in pathA/Data and therefore the installation hangs. The second one was similar. After I installed spotify and ran it, the player didn't render its window properly and I found out that it wasn't able to locate some libraries. The solution was to copy every lib file from /usr/local/lib/spotify-client to /usr/local/lib/spotify-client/Data . These can be easily changed in the makefile.
dtsiamasiotis
 
Posts: 9
Joined: Mar 29th, '11, 22:53

Re: [SOLVED] Spotify

Postby DiBosco » Mar 6th, '14, 13:34

I can't get the install to work:

Code: Select all
./configure --user
Checking build and support dependencies
INFO: ldconfig(8) not found default PATH.
INFO: Trying adding '/sbin:/usr/sbin'
    ldconfig:... ldconfig (GNU libc) 2.18 (ok)
    python: Python 2.7.6 (ok)
    wget: GNU Wget 1.14 built on linux-gnu. (ok)
    zenity: ...(ok)
    ar: GNU ar (GNU Binutils) 2.24 (ok)
    lsb_release: trying -i: Distributor ID: Mageia (ok)
    make: GNU Make 4.0 (ok)
    install: install (GNU coreutils) 8.21 (ok)
    desktop-file-validate: (ok)
    gtk-update-icon-cache: (ok)
    update-desktop-database: (ok)
Determining distro:... Mageia
Determining version:... 0.9.4.183.g644e24e.428
Determining arch:... amd64
Determine .deb file...spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb
Determine permissions for shared libs (SO_PERMS)...644
Configuration paths:
      PATH:  /usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/robertw/bin:/usr/lib64/qt5/bin:/sbin:/usr/sbin
    prefix:  /home/robertw/.local
    bindir:  /home/robertw/bin
    libdir:  /home/robertw/.local/lib
    datadir: /home/robertw/.local/share
    mandir:  /home/robertw/.local/share/man
Writing Makefile
Writing spotify.desktop
Writing spotify.bash
[robertw@localhost spotify-make]$ make install
ar x spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb
tar xzf data.tar.gz
cp -ar ./opt/spotify/spotify-client/*  /home/robertw/.local/share/spotify-client
mv /home/robertw/.local/share/spotify-client/libcef.so /home/robertw/.local/lib/spotify-client
mv: cannot stat ‘/home/robertw/.local/share/spotify-client/libcef.so’: No such file or directory
Makefile:68: recipe for target 'unpack' failed
make: *** [unpack] Error 1


Anyone know whether that is fixable please? And if so, how? Thanks :)

Edit, found that file in a different subdirectory of the install, copied it to the "correct" directory and tried again. This time it fails like this:

Code: Select all
make install
ar x spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb
tar xzf data.tar.gz
cp -ar ./opt/spotify/spotify-client/*  /home/robertw/.local/share/spotify-client
mv /home/robertw/.local/share/spotify-client/libcef.so /home/robertw/.local/lib/spotify-client
mv /home/robertw/.local/share/spotify-client/spotify /home/robertw/.local/lib/spotify-client
cd /home/robertw/.local/lib/spotify-client;           \
ln -sf ../../share/spotify-client/*.pak    .;     \
ln -sf ../../share/spotify-client/locales  .;     \
ln -sf ../../share/spotify-client/Data     .;     \
ln -sf ../../share/spotify-client/licenses.xhtml .;
[ -n " mageia2/doc/LICENSE.GPL3 mageia2/doc/README mageia2/doc/LICENSE.FDL mageia2/doc/LICENSE.LGPL" ] && cp -a  mageia2/doc/LICENSE.GPL3 mageia2/doc/README mageia2/doc/LICENSE.FDL mageia2/doc/LICENSE.LGPL /home/robertw/.local/share/spotify-client || :
cp -a mageia2/amd64/libQtDBus.so.4.8.1 /home/robertw/.local/lib/spotify-client
INFO: resolving libssl.so.0.9.8 as " /lib64/libssl.so.1.0.0"
INFO: resolving libcrypto.so.0.9.8 as " /lib64/libcrypto.so.1.0.0"
INFO: resolving libnss3.so.1d as " /lib64/libnss3.so"
INFO: resolving libnssutil3.so.1d as " /lib64/libnssutil3.so"
INFO: resolving libsmime3.so.1d as " /lib64/libsmime3.so"
INFO: resolving libplc4.so.0d as " /lib64/libplc4.so"
INFO: resolving libnspr4.so.0d as " /lib64/libnspr4.so"
INFO: resolving libudev.so.0 as " /lib64/libudev.so.1"
cd  /home/robertw/.local/lib/spotify-client; \
    mv spotify spotify-bin; \
    ln -s . spotify
sed -i spotify.bash -e '/^spotify=/s/spotify$/spotify-bin/'
install -m 755 -pD spotify.bash /home/robertw/bin/my-spotify
install -m 644 -pD spotify.1 /home/robertw/.local/share/man/man1/my-spotify.1
install: cannot stat ‘spotify.1’: No such file or directory
Makefile:152: recipe for target 'addons' failed
make: *** [addons] Error 1


I can't find spotify.1 anywhere. Is there any significance in that it is looking in mageia2 locations where I'm running M3?

Ta. :)
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] Spotify

Postby doktor5000 » Mar 7th, '14, 21:45

Maybe you want to send a PM to leamas so that he will be notified.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18040
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Previous

Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron