3
0
Fork 0
forked from mirrors/nixpkgs

nixos-artwork: fix gnome not adding wallpapers to list of backgrounds

This commit is contained in:
Babbaj 2022-04-21 15:11:28 -04:00
parent ba0b39e02c
commit 212074cde1
No known key found for this signature in database
GPG key ID: F044309848A07CAC

View file

@ -14,6 +14,22 @@ let
mkdir -p $out/share/backgrounds/nixos
ln -s $src $out/share/backgrounds/nixos/${src.name}
mkdir -p $out/share/gnome-background-properties/
cat <<EOF > $out/share/gnome-background-properties/${name}.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
<wallpaper deleted="false">
<name>${name}</name>
<filename>${src}</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>
</wallpaper>
</wallpapers>
EOF
# TODO: is this path still needed?
mkdir -p $out/share/artwork/gnome
ln -s $src $out/share/artwork/gnome/${src.name}