Fix not showing up on desktop

This commit is contained in:
Tibo De Peuter 2023-10-08 23:04:55 +02:00
parent fff30c3314
commit 575bcf6388

View file

@ -11,7 +11,14 @@
# TODO Is it possible to inherit all other values?
xdg.desktopEntries.spotify = {
name = "Spotify";
exec = "LD_PRELOAD=${pkgs.spotify-adblock}/lib/libspotifyadblock.so spotify %U";
genericName = "Music Player";
icon = "spotify-client";
exec = "env LD_PRELOAD=${pkgs.spotify-adblock}/lib/libspotifyadblock.so spotify %U";
mimeType = [ "x-scheme-handler/spotify" ];
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
settings = {
StartupWMClass = "spotify";
};
};
};
}