nixos-artwork: make wallpapers available to KDE (#51926)

This commit is contained in:
Peter Hoeg 2018-12-15 23:39:02 +08:00 committed by zimbatm
parent e05348e192
commit 68baf6bdd1

View file

@ -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; {