This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Save this file somewhere as spotify.preload.c | |
// Then build the library: | |
// gcc -fPIC -shared -o ~/spotify.preload.so spotify.preload.c -ldl | |
// When you execute spotify, you need to preload this library, which wraps the "setsockopt" function call with another function that gives spotify the results it expects: | |
// LD_PRELOAD=~/spotify.preload.so spotify | |
// To make the desktop icon work, edit: /usr/share/applications/spotify.desktop | |
// Change Exec=... to: |