Ventoy Forums
Can I place the ventoy.json inside the efi partition or in folder named Settings? - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: Can I place the ventoy.json inside the efi partition or in folder named Settings? (/showthread.php?tid=456)



Can I place the ventoy.json inside the efi partition or in folder named Settings? - Algernon - 08-16-2020

Hi everyone, I wanted to ask if there is a way I can place the ventoy.json for plugins/ventoy_grub.cfg in the smaller efi partition to configure the default theme or if it is not possible for technical reasons. I have assigned the ventoy efi partition a letter for now, my idea was I could set it up and only make the partition visible when adding more icon or menuentries. This would also be to further protect it. Could this potentially be possible by altering a line or two to check for the part_efi instead of part_iso then changing appropriate entries in the other cfgs to match or a process similar to this without the need to recompile from source fully? Tried some things but so far no luck.  If inside the vtoyefi partition is not supported, would it be possible for the ventoy.json and theme contents to be placed in another specified folder such as Settings in the root directory of the regular iso partition?


RE: Can I place the ventoy.json inside the efi partition or in folder named Settings? - longpanda - 08-16-2020

NO.
Ventoy was designed so.
ventoy.json MUST be put in the iso partition and under ventoy directory. The name was hardcoded in the source code.
If you only want to change the theme, you can replace the default theme in the efi partition by yours. But you have to do that every time after you update Ventoy.


RE: Can I place the ventoy.json inside the efi partition or in folder named Settings? - Algernon - 08-16-2020

(08-16-2020, 02:14 PM)longpanda Wrote: If you only want to change the theme, you can replace the default theme in the efi partition by yours. But you have to do that every time after you update Ventoy.
Thank you for your timely response and your work on this great project.  Just to be entirely clear, there is not either any plaintext file by default in the efi with ability to function as the ventoy.json just for the default theme? I cannot at this time specify some entries of orignal theme such as custom distro class icons, menu alias, or vtoy_right, this can only be done for all other themes located in the ventoy folder in iso correct?


RE: Can I place the ventoy.json inside the efi partition or in folder named Settings? - longpanda - 08-17-2020

Yes.
You can only replace the default theme's background image/default iso icon. You cannot define customize menu/icon type.
All these need \ventoy\ventoy.json in the iso partition. And the path is fixed, cannot be changed.