Fix mesh client desktop background
This commit is contained in:
parent
dc0d04ca1d
commit
a57c207750
|
@ -288,9 +288,9 @@ if [ -f ~/.initial_setup ]; then
|
|||
| | (.-' (.-' ( | ( )| | | | )( )| | (.-'
|
||||
' ' --' --' -' - -' ' ' -' -' -' ' - --'
|
||||
|
||||
Initial setup process
|
||||
Initial setup process
|
||||
|
||||
Please enter your password a second time.
|
||||
Please enter your password a second time.
|
||||
"
|
||||
sudo su
|
||||
fi
|
||||
|
@ -1104,19 +1104,15 @@ function configure_user_interface {
|
|||
|
||||
echo '[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx' >> $rootdir/home/$MY_USERNAME/.profile
|
||||
|
||||
chroot "$rootdir" systemctl set-default multi-user.target
|
||||
chroot "$rootdir" systemctl set-default multi-user.target
|
||||
|
||||
# change the desktop background
|
||||
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
||||
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
||||
if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then
|
||||
cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/joy/background.png
|
||||
fi
|
||||
if [ -d $rootdir/usr/share/plymouth/themes/lines ]; then
|
||||
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
|
||||
if [ -d $rootdir/usr/share/images/desktop-base ]; then
|
||||
cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png
|
||||
chroot "$rootdir" rm /usr/share/images/desktop-base/desktop-background
|
||||
chroot "$rootdir" ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue