mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Fix shortcuts. Close #141
This commit is contained in:
		
							parent
							
								
									33adadc988
								
							
						
					
					
						commit
						c6659a5b77
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		
							
								
								
									
										9
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -928,17 +928,14 @@ function vm_boot() { | |||
| } | ||||
| 
 | ||||
| function shortcut_create { | ||||
|   local VMNAME="" | ||||
|   VMNAME=$(basename "${VM}" .conf) | ||||
|   local LAUNCHER_DIR="" | ||||
|   LAUNCHER_DIR="$(dirname "$(realpath "$0")")" | ||||
|   local filename="${HOME}/.local/share/applications/${VMNAME}.desktop" | ||||
|   cat << EOF > "${filename}" | ||||
| [Desktop Entry] | ||||
| Version=1.0 | ||||
| Type=Application | ||||
| Terminal=true | ||||
| Exec=${LAUNCHER_DIR}/${LAUNCHER} --vm ${VM} | ||||
| Terminal=false | ||||
| Exec=${0} --vm ${VM} | ||||
| Path=${VMPATH} | ||||
| Name=${VMNAME} | ||||
| Icon=/usr/share/icons/hicolor/scalable/apps/qemu.svg | ||||
| EOF | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue