cinnamon: Provide default Slackware wallpaper.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-11-20 15:06:35 +07:00
parent 738f382412
commit 07bee36bad
No known key found for this signature in database
GPG key ID: 887B8374D7333381
7 changed files with 41 additions and 5 deletions

View file

@ -24,7 +24,7 @@
PRGNAM=cinnamon
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_csb}
if [ -z "$ARCH" ]; then
@ -74,10 +74,6 @@ find -L . \
# Use cinnamon theme by default
patch -p1 < $CWD/default-theme.patch
# Cinnamon has no upstream backgrounds, use GNOME backgrounds instead
sed -i 's|/usr/share/cinnamon-background-properties|/usr/share/gnome-background-properties|' \
files/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py
# Fix selected background color in Cinnamon Settings for Adwaita theme
sed -i 's/@selected_bg_color;/@theme_selected_bg_color;/' \
files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py
@ -133,6 +129,14 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
# provide some background wallpapers
mkdir -p $PKG/usr/share/backgrounds/cinnamon/desktop/ $PKG/usr/share/cinnamon-background-properties/
cp $CWD/slackware-background-*.png $PKG/usr/share/backgrounds/cinnamon/desktop/
cp $CWD/slackware.xml $PKG/usr/share/cinnamon-background-properties/
# override schema to provide a default Slackware background wallpaper
cp $CWD/slackware-14.2.gschema.override $PKG/usr/share/glib-2.0/schemas
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

View file

@ -0,0 +1,4 @@
[org.cinnamon.desktop.background]
picture-uri='file:///usr/share/backgrounds/cinnamon/desktop/slackware-background-blue.png'
primary-color='#000000'
secondary-color='#777777'

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

28
cinnamon/slackware.xml Normal file
View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "cinnamon-wp-list.dtd">
<wallpapers>
<wallpaper deleted="false">
<name>Slackware Linux (Blue)</name>
<filename>/usr/share/backgrounds/cinnamon/desktop/slackware-background-blue.png</filename>
<options>zoom</options>
<artist>Caveman</artist>
</wallpaper>
<wallpaper deleted="false">
<name>Slackware Linux (Black)</name>
<filename>/usr/share/backgrounds/cinnamon/desktop/slackware-background-black.png</filename>
<options>zoom</options>
<artist>Caveman</artist>
</wallpaper>
<wallpaper deleted="false">
<name>Slackware Linux (SubGenius)</name>
<filename>/usr/share/backgrounds/cinnamon/desktop/slackware-background-subgenius.png</filename>
<options>zoom</options>
<artist>Leggi Argomento</artist>
</wallpaper>
<wallpaper deleted="false">
<name>Slackware Linux (Light)</name>
<filename>/usr/share/backgrounds/cinnamon/desktop/slackware-background-light.png</filename>
<options>zoom</options>
<artist>Amarillo Linux Users Group</artist>
</wallpaper>
</wallpapers>