Fix mesh client desktop background

This commit is contained in:
Bob Mottram 2016-06-24 16:32:47 +01:00
parent dc0d04ca1d
commit a57c207750
1 changed files with 7 additions and 11 deletions

View File

@ -1109,14 +1109,10 @@ function configure_user_interface {
# change the desktop background # change the desktop background
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then if [ -d $rootdir/usr/share/images/desktop-base ]; then
cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/joy/background.png cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png
fi chroot "$rootdir" rm /usr/share/images/desktop-base/desktop-background
if [ -d $rootdir/usr/share/plymouth/themes/lines ]; then chroot "$rootdir" ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/lines/background.png
fi
if [ -d $rootdir/usr/share/plymouth/themes/spacefun ]; then
cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/spacefun/background.png
fi fi
fi fi
fi fi