New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symbol lookup error #46
Comments
Sounds like the same problem as #2. The package puts a shell script in your PATH instead of the actual Spotify binary, so it tries to load the adblocking library into LD_LIBRARY_PATH=/usr/libexec/spotify LD_PRELOAD=/usr/local/lib/spotify-adblock.so /usr/libexec/spotify/spotify might work for you. |
This did seem to work, thank you! Spotify launches, and I can see Now, however, with the library loaded, Spotify seems unable to play any music. Should I close this issue and open another to address this? |
Just a brief update, for whatever reason trying again today Spotify has no problems. I've created a .desktop file that preloads the .so and targets the Spotify executable directly instead of the sh file, and while that did not work yesterday it seems to be fine now. I can open up Spotify and play music, and no ads appear in the interface or play between songs, exactly as intended. No idea what was preventing it from playing before, but I'll close this issue. Thanks again for all! |
|
for me on Fedora 36 spotify is installed is
or
still gives me this error |
LD_LIBRARY_PATH=/usr/lib64/spotify-client LC_NUMERIC=en_US.utf8 LD_PRELOAD=/usr/local/lib/spotify-adblock.so /usr/lib64/spotify-client/spotify for fedora with lpf |
it worked for me, but how can i make this the default spotify, so i could open it from the applications menu? |
copy spotify's desktop file (/usr/share/applications/spotify.desktop) and create a new one (/usr/local/share/spotify_adblock.desktop etc.), change Name section to "Spotify (adblock)" It should look like this:
I haven't tested but it'll probably work. |
With 14a0e8e, this problem is possibly solved and editing of wrapper scripts not necessary anymore. |
when attempting to preload the library with
LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify
, an error is returned and Spotify does not open.The error says:
/bin/sh: symbol lookup error: /usr/local/lib/spotify-adblock.so: undefined symbol: cef_string_userfree_utf16_free
This happens regardless of whether I point LD_PRELOAD at the .so created from compiling, or the .so downloaded from the GitHub release page.
This happens regardless of which shell I run the command from (I have tried fish, bash, and sh), though fish reports an exit code of [127] and when using bash the error instead begins with "
/bin/bash
".When using a spotify-adblock.desktop file as described in the README and attempting to launch with wofi, Spotify simply does not open. I assume that the same error is occurring invisibly when wofi runs the command.
I am running glibc Void Linux, with xbps updates run this morning, and the Spotify that is available via xbps-src - 1.1.68 as of this writing.
I am lost as to what I could be doing differently and have been unable to find a solution from searching online.
I'm happy to provide any other info that might be helpful.
The text was updated successfully, but these errors were encountered: