dotfiles/common/users/homeModules/desktopEntries.nix
2024-10-02 16:36:52 -04:00

18 lines
485 B
Nix

{ ... }:
{
xdg = {
desktopEntries = {
spotifyOpen = {
type = "Application";
name = "Open in Spotify";
genericName = "Music Player";
icon = "spotify-client";
terminal = false;
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
exec = "qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri %U";
mimeType = [ "x-scheme-handler/spotify" ];
};
};
};
}