diff --git a/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 b/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 index 9ab248e4..c513b25a 100644 Binary files a/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 and b/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/i386/Ventoy2Disk.gtk2 b/INSTALL/tool/i386/Ventoy2Disk.gtk2 index 32f4e9d8..16a87d49 100644 Binary files a/INSTALL/tool/i386/Ventoy2Disk.gtk2 and b/INSTALL/tool/i386/Ventoy2Disk.gtk2 differ diff --git a/INSTALL/tool/i386/Ventoy2Disk.gtk3 b/INSTALL/tool/i386/Ventoy2Disk.gtk3 index 1a1ba58e..49d18bee 100644 Binary files a/INSTALL/tool/i386/Ventoy2Disk.gtk3 and b/INSTALL/tool/i386/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 b/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 index c4109a45..f8e32876 100644 Binary files a/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 and b/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 b/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 index ff9cc6b0..371f1e34 100644 Binary files a/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 and b/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 differ diff --git a/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 b/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 index 38ca766b..493e8aa0 100644 Binary files a/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 and b/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 differ diff --git a/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c b/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c index 8a97b2d5..b86d4fbc 100644 --- a/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c +++ b/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c @@ -202,8 +202,6 @@ void on_secure_boot_toggled(GtkMenuItem *menuItem, gpointer data) { g_secure_boot_support = 1 - g_secure_boot_support; -vlog("on_secure_boot_toggled %d\n",g_secure_boot_support ); - if (g_secure_boot_support) { gtk_widget_show((GtkWidget *)g_image_secure_local); diff --git a/LinuxGUI/Ventoy2Disk/main_gtk.c b/LinuxGUI/Ventoy2Disk/main_gtk.c index 4f1d8a09..a2b96aa5 100644 --- a/LinuxGUI/Ventoy2Disk/main_gtk.c +++ b/LinuxGUI/Ventoy2Disk/main_gtk.c @@ -15,6 +15,7 @@ #include #include "ventoy_gtk.h" +static int g_kiosk_mode = 0; char g_log_file[PATH_MAX]; char g_ini_file[PATH_MAX]; @@ -130,6 +131,15 @@ int main(int argc, char *argv[]) return 1; } + for (i = 0; i < argc; i++) + { + if (argv[i] && strcmp(argv[i], "--kiosk") == 0) + { + g_kiosk_mode = 1; + break; + } + } + snprintf(g_log_file, sizeof(g_log_file), "log.txt"); snprintf(g_ini_file, sizeof(g_ini_file), "./Ventoy2Disk.ini"); for (i = 0; i < argc; i++) @@ -179,12 +189,20 @@ int main(int argc, char *argv[]) return 1; } - pData = get_refresh_icon_raw_data(&len); - set_image_from_pixbuf(pBuilder, "image_refresh", pData, len); - - pData = get_secure_icon_raw_data(&len); - set_image_from_pixbuf(pBuilder, "image_secure_local", pData, len); - set_image_from_pixbuf(pBuilder, "image_secure_dev", pData, len); + if (g_kiosk_mode) + { + gtk_image_set_from_file((GtkImage *)gtk_builder_get_object(pBuilder, "image_refresh"), "/ventoy/refresh.png"); + gtk_image_set_from_file((GtkImage *)gtk_builder_get_object(pBuilder, "image_secure_local"), "/ventoy/secure.png"); + gtk_image_set_from_file((GtkImage *)gtk_builder_get_object(pBuilder, "image_secure_dev"), "/ventoy/secure.png"); + } + else + { + pData = get_refresh_icon_raw_data(&len); + set_image_from_pixbuf(pBuilder, "image_refresh", pData, len); + pData = get_secure_icon_raw_data(&len); + set_image_from_pixbuf(pBuilder, "image_secure_local", pData, len); + set_image_from_pixbuf(pBuilder, "image_secure_dev", pData, len); + } pWidget = GTK_WIDGET(gtk_builder_get_object(pBuilder, "window")); gtk_widget_show_all(pWidget);