| 
				
			 | 
			
			
				@@ -1077,9 +1077,15 @@ function configure_user_interface { 
			 | 
		
	
		
			
			| 
				1077
			 | 
			
				1077
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				1078
			 | 
			
				1078
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1079
			 | 
			
				1079
			 | 
			
			
				 	# desktop 
			 | 
		
	
		
			
			| 
				1080
			 | 
			
				
			 | 
			
			
				-	chroot "$rootdir" apt-get -y install mate-desktop-environment lightdm 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1080
			 | 
			
			
				+	chroot "$rootdir" apt-get -y install mate-desktop-environment 
			 | 
		
	
		
			
			| 
				1081
			 | 
			
				1081
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1082
			 | 
			
				1082
			 | 
			
			
				 	if [[ $VARIANT != "usb" ]]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1083
			 | 
			
			
				+		# log in automatically 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1084
			 | 
			
			
				+		chroot "$rootdir" apt-get -y install nodm 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1085
			 | 
			
			
				+		echo 'NODM_ENABLED=true' > /etc/default/nodm 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1086
			 | 
			
			
				+		echo "NODM_USER=$MY_USERNAME" >> /etc/default/nodm 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1087
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1088
			 | 
			
			
				+		# change the desktop background 
			 | 
		
	
		
			
			| 
				1083
			 | 
			
				1089
			 | 
			
			
				 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then 
			 | 
		
	
		
			
			| 
				1084
			 | 
			
				1090
			 | 
			
			
				 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then 
			 | 
		
	
		
			
			| 
				1085
			 | 
			
				1091
			 | 
			
			
				 				if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -1093,6 +1099,8 @@ function configure_user_interface { 
			 | 
		
	
		
			
			| 
				1093
			 | 
			
				1099
			 | 
			
			
				 				fi 
			 | 
		
	
		
			
			| 
				1094
			 | 
			
				1100
			 | 
			
			
				 			fi 
			 | 
		
	
		
			
			| 
				1095
			 | 
			
				1101
			 | 
			
			
				 		fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1102
			 | 
			
			
				+	else 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1103
			 | 
			
			
				+		chroot "$rootdir" apt-get -y install lightdm 
			 | 
		
	
		
			
			| 
				1096
			 | 
			
				1104
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				1097
			 | 
			
				1105
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1098
			 | 
			
				1106
			 | 
			
			
				 	# browser 
			 |