mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Vars refactor: Replace UI with OUTPUT
This commit is contained in:
		
							parent
							
								
									dd4c6bf80d
								
							
						
					
					
						commit
						3816fe4028
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -93,7 +93,7 @@ function vm_boot() { | |||
|   local VIDEO_DRV="" | ||||
|   local GL="on" | ||||
|   local VIRGL="on" | ||||
|   local UI="sdl" | ||||
|   local OUTPUT="sdl" | ||||
|   local QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1) | ||||
|   echo "Starting ${VM}" | ||||
|   echo " - QEMU:     ${QEMU} v${QEMU_VER}" | ||||
|  | @ -228,10 +228,10 @@ function vm_boot() { | |||
|   fi | ||||
| 
 | ||||
|   # GL is not working with GTK currently | ||||
|   if [ "${UI}" == "gtk" ]; then | ||||
|   if [ "${OUTPUT}" == "gtk" ]; then | ||||
|     GL="off" | ||||
|   else | ||||
|     echo " - Display:  ${X_RES}x${Y_RES}" | ||||
|     echo " - Screen:   ${X_RES}x${Y_RES}" | ||||
|   fi | ||||
|    | ||||
|   if [ "${VIDEO_DRV}" == "qxl" ]; then | ||||
|  | @ -244,7 +244,7 @@ function vm_boot() { | |||
|   fi | ||||
|   echo " - GL:       ${GL^^}" | ||||
|   echo " - Virgil3D: ${VIRGL^^}" | ||||
|   echo " - Output:   ${UI^^}" | ||||
|   echo " - Display:  ${OUTPUT^^}" | ||||
| 
 | ||||
|   # Set the hostname of the VM | ||||
|   local NET="user,hostname=${VMNAME}" | ||||
|  | @ -290,7 +290,7 @@ function vm_boot() { | |||
|     -object rng-random,id=rng0,filename=/dev/urandom \ | ||||
|     -device virtio-rng-pci,rng=rng0 \ | ||||
|     ${VIDEO_DEV} \ | ||||
|     -display ${UI},gl=${GL} \ | ||||
|     -display ${OUTPUT},gl=${GL} \ | ||||
|     ${STATUS_QUO} \ | ||||
|     "$@" | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue