abba23 / spotify-adblock

Adblocker for Spotify
https://github.com/abba23/spotify-adblock
1.83k stars 89 forks source link

How to pass flags/arguments to the spotify-adblock.desktop for the flatpak version? #181

Closed n3thshan closed 2 weeks ago

n3thshan commented 2 weeks ago

Hi. I am trying to pass the flags --enable-features=UseOzonePlatform --ozone-platform=wayland --force-device-scale-factor=1.25 using the adblock .desktop file but it does not work. The following are what I tried:

Exec=flatpak run --file-forwarding --command=sh com.spotify.Client -c 'eval "$(sed s#LD_PRELOAD=#LD_PRELOAD=$HOME/.spotify-adblock/spotify-adblock.so:#g /app/bin/spotify)"'  --enable-features=UseOzonePlatform --ozone-platform=wayland --force-device-scale-factor=1.25 @@u %U @@
Exec=flatpak run --file-forwarding --command=sh com.spotify.Client --enable-features=UseOzonePlatform --ozone-platform=wayland --force-device-scale-factor=1.25 -c 'eval "$(sed s#LD_PRELOAD=#LD_PRELOAD=$HOME/.spotify-adblock/spotify-adblock.so:#g /app/bin/spotify)"' @@u %U @@

None of them work. I dont know scripting or coding so i am not aware of the correct way to pass these flags to the flatpak. Any help is appreciated!

n3thshan commented 2 weeks ago

Fixed by creating ~/.var/app/com.spotify.Client/config/spotify-flags.conf and adding the flags there