From 68baf6bdd10bc162ad762c76c134fd330458da2d Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Sat, 15 Dec 2018 23:39:02 +0800 Subject: [PATCH] nixos-artwork: make wallpapers available to KDE (#51926) --- pkgs/data/misc/nixos-artwork/wallpapers.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/data/misc/nixos-artwork/wallpapers.nix b/pkgs/data/misc/nixos-artwork/wallpapers.nix index 648b4f1dd960..50f874baa4ae 100644 --- a/pkgs/data/misc/nixos-artwork/wallpapers.nix +++ b/pkgs/data/misc/nixos-artwork/wallpapers.nix @@ -11,6 +11,15 @@ let installPhase = '' mkdir -p $out/share/artwork/gnome ln -s $src $out/share/artwork/gnome/${src.name} + + # KDE + mkdir -p $out/share/wallpapers/${name}/contents/images + ln -s $src $out/share/wallpapers/${name}/contents/images/${src.name} + cat >>$out/share/wallpapers/${name}/metadata.desktop <<_EOF +[Desktop Entry] +Name=${name} +X-KDE-PluginInfo-Name=${name} +_EOF ''; meta = with stdenv.lib; {