【Solved】menu_alias not working - plato2021 - 08-18-2021
I am new to json but most thing work for me now, except for original iso names translated to pleasant readable names: "menu_alias"
I checked everything I know. I tried all kind of things. I might be just syntax or somethings else. Any suggestions would be very welcome.
Code: {
"control": [
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
],
"theme": {
"file": "/ventoy/themes/litemint/theme.txt",
"gfxmode": "1920x1080",
"ventoy_color": "#d0e764"
},
"menu_class" : [
{
"key": "MX",
"class": "mx"
},
{
"key": "FreeBSD",
"class": "freebsd"
},
{
"key": "GhostBSD",
"class": "bsd"
},
{
"key": "NetBSD",
"class": "bsd"
},
{
"key": "openbsd",
"class": "bsd"
},
{
"key": "MXkde",
"class": "mx"
},
{
"key": "Elementar",
"class": "elementary"
},
{
"key": "Windows_7",
"class": "windows7"
},
{
"key": "Windows_10",
"class": "windows10"
},
{
"key": "kubuntu",
"class": "kubuntu"
},
{
"key": "Linuxmint",
"class": "Linuxmint"
},
{
"key": "bodhi",
"class": "bodhi"
},
{
"key": "alpine-extended",
"class": "alpine"
},
{
"key": "alpine-standard",
"class": "alpine"
},
{
"key": "arcolinux",
"class": "arcolinux"
},
{
"key": "BSDRP",
"class": "BSDRP"
},
{
"key": "clonezilla",
"class": "clonezilla"
},
{
"key": "EasyNAS",
"class": "nas"
},
{
"key": "garuda",
"class": "garuda"
},
{
"key": "gparted",
"class": "gparted"
},
{
"key": "ipfire",
"class": "ipfire"
},
{
"key": "KNOPPIX",
"class": "KNOPPIX"
},
{
"key": "kodachi",
"class": "kodachi"
},
{
"key": "linux-lite",
"class": "linux-lite"
},
{
"key": "netboot",
"class": "sysadmin"
},
{
"key": "NST",
"class": "security"
},
{
"key": "openfiler",
"class": "nas"
},
{
"key": "Openmandriva",
"class": "Openmandriva"
},
{
"key": "openmediavault",
"class": "nas"
},
{
"key": "Peppermint",
"class": "Peppermint"
},
{
"key": "pfSense",
"class": "pfSense"
},
{
"key": "Septor",
"class": "linux"
},
{
"key": "proxmox",
"class": "proxmox"
},
{
"key": "puppy",
"class": "puppy"
},
{
"key": "Qubes",
"class": "Qubes"
},
{
"key": "rescatux",
"class": "sysadmin"
},
{
"key": "rescuezilla",
"class": "sysadmin"
},
{
"key": "slackware",
"class": "slackware"
},
{
"key": "sparkylinux",
"class": "sparkylinux"
},
{
"key": "systemrescue",
"class": "sysadmin"
},
{
"key": "tails",
"class": "privacy"
},
{
"key": "TinyCore",
"class": "TinyCore"
},
{
"key": "Core-Current",
"class": "TinyCore"
},
{
"key": "Core-Plus",
"class": "TinyCore"
},
{
"key": "TrueNAS",
"class": "TrueNAS"
},
{
"key": "Arch",
"class": "arch"
},
{
"key": "ArchLinux",
"class": "archlinux"
},
{
"key": "Chakra",
"class": "chakra"
},
{
"key": "Debian",
"class": "debian"
},
{
"key": "Deepin",
"class": "deepin"
},
{
"key": "Endeavouros",
"class": "endeavouros"
},
{
"key": "Fedora",
"class": "fedora"
},
{
"key": "Gentoo",
"class": "gentoo"
},
{
"key": "GNU",
"class": "gnu-linux"
},
{
"key": "TS",
"class": "sysadmin"
},
{
"key": "ventoy",
"class": "sysadmin"
},
{
"key": "Kali",
"class": "kali"
},
{
"key": "Kaos",
"class": "kaos"
},
{
"key": "Lubuntu",
"class": "lubuntu"
},
{
"key": "Linux",
"class": "Linux"
},
{
"key": "Manjaro",
"class": "manjaro"
},
{
"key": "Solus",
"class": "solus"
},
{
"key": "Opensuse",
"class": "opensuse"
},
{
"key": "SteamOS ",
"class": "steamos"
},
{
"key": "Ubuntu",
"class": "ubuntu"
},
{
"key": "Search",
"class": "find.efi"
},
{
"key": "Pop",
"class": "pop"
},
{
"key": "Xubuntu",
"class": "xubuntu"
},
{
"key": "CentOS-7-",
"class": "centos"
}
]
}
{
"menu_alias": [
{
"image": "/Archlinux-2021.08.01-x86_64.iso",
"alias": "Arch Linux 2021 64bit"
},
{
"image": "/arcolinuxl-v21.09.8-x86_64.iso",
"alias": "Arco Linux 2021 64bit"
},
{
"image": "/cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso",
"alias": "Windows 10"
},
{
"dir": "/ISO/Linux",
"alias": "[My Linux Directory]"
}
]
}
RE: menu_alias not working - longpanda - 08-18-2021
Code: {
"control":[
{
"VTOY_DEFAULT_MENU_MODE":"1"
},
{
"VTOY_FILT_DOT_UNDERSCORE_FILE":"1"
}
],
"theme":{
"file":"/ventoy/themes/litemint/theme.txt",
"gfxmode":"1920x1080",
"ventoy_color":"#d0e764"
},
"menu_class":[
{
"key":"MX",
"class":"mx"
},
{
"key":"FreeBSD",
"class":"freebsd"
},
{
"key":"GhostBSD",
"class":"bsd"
},
{
"key":"NetBSD",
"class":"bsd"
},
{
"key":"openbsd",
"class":"bsd"
},
{
"key":"MXkde",
"class":"mx"
},
{
"key":"Elementar",
"class":"elementary"
},
{
"key":"Windows_7",
"class":"windows7"
},
{
"key":"Windows_10",
"class":"windows10"
},
{
"key":"kubuntu",
"class":"kubuntu"
},
{
"key":"Linuxmint",
"class":"Linuxmint"
},
{
"key":"bodhi",
"class":"bodhi"
},
{
"key":"alpine-extended",
"class":"alpine"
},
{
"key":"alpine-standard",
"class":"alpine"
},
{
"key":"arcolinux",
"class":"arcolinux"
},
{
"key":"BSDRP",
"class":"BSDRP"
},
{
"key":"clonezilla",
"class":"clonezilla"
},
{
"key":"EasyNAS",
"class":"nas"
},
{
"key":"garuda",
"class":"garuda"
},
{
"key":"gparted",
"class":"gparted"
},
{
"key":"ipfire",
"class":"ipfire"
},
{
"key":"KNOPPIX",
"class":"KNOPPIX"
},
{
"key":"kodachi",
"class":"kodachi"
},
{
"key":"linux-lite",
"class":"linux-lite"
},
{
"key":"netboot",
"class":"sysadmin"
},
{
"key":"NST",
"class":"security"
},
{
"key":"openfiler",
"class":"nas"
},
{
"key":"Openmandriva",
"class":"Openmandriva"
},
{
"key":"openmediavault",
"class":"nas"
},
{
"key":"Peppermint",
"class":"Peppermint"
},
{
"key":"pfSense",
"class":"pfSense"
},
{
"key":"Septor",
"class":"linux"
},
{
"key":"proxmox",
"class":"proxmox"
},
{
"key":"puppy",
"class":"puppy"
},
{
"key":"Qubes",
"class":"Qubes"
},
{
"key":"rescatux",
"class":"sysadmin"
},
{
"key":"rescuezilla",
"class":"sysadmin"
},
{
"key":"slackware",
"class":"slackware"
},
{
"key":"sparkylinux",
"class":"sparkylinux"
},
{
"key":"systemrescue",
"class":"sysadmin"
},
{
"key":"tails",
"class":"privacy"
},
{
"key":"TinyCore",
"class":"TinyCore"
},
{
"key":"Core-Current",
"class":"TinyCore"
},
{
"key":"Core-Plus",
"class":"TinyCore"
},
{
"key":"TrueNAS",
"class":"TrueNAS"
},
{
"key":"Arch",
"class":"arch"
},
{
"key":"ArchLinux",
"class":"archlinux"
},
{
"key":"Chakra",
"class":"chakra"
},
{
"key":"Debian",
"class":"debian"
},
{
"key":"Deepin",
"class":"deepin"
},
{
"key":"Endeavouros",
"class":"endeavouros"
},
{
"key":"Fedora",
"class":"fedora"
},
{
"key":"Gentoo",
"class":"gentoo"
},
{
"key":"GNU",
"class":"gnu-linux"
},
{
"key":"TS",
"class":"sysadmin"
},
{
"key":"ventoy",
"class":"sysadmin"
},
{
"key":"Kali",
"class":"kali"
},
{
"key":"Kaos",
"class":"kaos"
},
{
"key":"Lubuntu",
"class":"lubuntu"
},
{
"key":"Linux",
"class":"Linux"
},
{
"key":"Manjaro",
"class":"manjaro"
},
{
"key":"Solus",
"class":"solus"
},
{
"key":"Opensuse",
"class":"opensuse"
},
{
"key":"SteamOS ",
"class":"steamos"
},
{
"key":"Ubuntu",
"class":"ubuntu"
},
{
"key":"Search",
"class":"find.efi"
},
{
"key":"Pop",
"class":"pop"
},
{
"key":"Xubuntu",
"class":"xubuntu"
},
{
"key":"CentOS-7-",
"class":"centos"
}
],
"menu_alias":[
{
"image":"/Archlinux-2021.08.01-x86_64.iso",
"alias":"Arch Linux 2021 64bit"
},
{
"image":"/arcolinuxl-v21.09.8-x86_64.iso",
"alias":"Arco Linux 2021 64bit"
},
{
"image":"/cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso",
"alias":"Windows 10"
},
{
"dir":"/ISO/Linux",
"alias":"[My Linux Directory]"
}
]
}
RE: menu_alias not working - longpanda - 08-18-2021
Use online json checker to check the syntax.
http://json.parser.online.fr/
RE: menu_alias not working - plato2021 - 08-18-2021
Solved, thanx!!!
|