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 { | 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" |   local filename="${HOME}/.local/share/applications/${VMNAME}.desktop" | ||||||
|   cat << EOF > "${filename}" |   cat << EOF > "${filename}" | ||||||
| [Desktop Entry] | [Desktop Entry] | ||||||
| Version=1.0 | Version=1.0 | ||||||
| Type=Application | Type=Application | ||||||
| Terminal=true | Terminal=false | ||||||
| Exec=${LAUNCHER_DIR}/${LAUNCHER} --vm ${VM} | Exec=${0} --vm ${VM} | ||||||
|  | Path=${VMPATH} | ||||||
| Name=${VMNAME} | Name=${VMNAME} | ||||||
| Icon=/usr/share/icons/hicolor/scalable/apps/qemu.svg | Icon=/usr/share/icons/hicolor/scalable/apps/qemu.svg | ||||||
| EOF | EOF | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue