⚠ I personnally consider this hacky solution very dangerous. It breaks the package manager model and may lead to system errors and inconsistencies. In particular, the behavior is undefined whenever codec packages get updated. Spotify should provide a clean solution for this instead!
Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]