all repos — nixfiles @ e578939110d38986e009affa98a946a8b81cad5c

System and user configuration, managed by nix and home-manager

music: update to use new xdg.desktopEntries setting
Alan Pearce alan@alanpearce.eu
Sat, 11 Jun 2022 15:59:49 +0200
commit

e578939110d38986e009affa98a946a8b81cad5c

parent

ba51456532c18f04a717fb4b0ea832bac9b9c009

1 files changed, 6 insertions(+), 8 deletions(-)

jump to
M user/settings/music.nixuser/settings/music.nix
@@ -6,18 +6,16 @@ cmus     playerctl
   ];
 
-  xdg.dataFile."applications/cmus".source = pkgs.makeDesktopItem {
+  xdg.desktopEntries.cmus = {
     name = "cmus";
     exec = "cmus";
     comment = "C* Music Player";
-    desktopName = "cmus";
-    categories = "Application;Audio;AudioVideo;";
+		categories = [ "Audio" "AudioVideo" ];
     genericName = "Music Player";
-    terminal = "true";
+    terminal = true;
 
-    # FIXME
-    extraEntries = ''
-      Path = /data/Home/Music/Beets
-    '';
+    settings = {
+		  Path = "/mnt/data/Home/Music/Beets";
+    };
   };
 }