diff --git a/INSTALL/VentoyGUI.aarch64 b/INSTALL/VentoyGUI.aarch64 index 35d51b31..3a1b7ba2 100644 Binary files a/INSTALL/VentoyGUI.aarch64 and b/INSTALL/VentoyGUI.aarch64 differ diff --git a/INSTALL/VentoyGUI.i386 b/INSTALL/VentoyGUI.i386 index b073fb95..c03a99a8 100644 Binary files a/INSTALL/VentoyGUI.i386 and b/INSTALL/VentoyGUI.i386 differ diff --git a/INSTALL/VentoyGUI.mips64el b/INSTALL/VentoyGUI.mips64el index d30bea7e..41193fe0 100644 Binary files a/INSTALL/VentoyGUI.mips64el and b/INSTALL/VentoyGUI.mips64el differ diff --git a/INSTALL/VentoyGUI.x86_64 b/INSTALL/VentoyGUI.x86_64 index 1e208fa8..f998d9d6 100644 Binary files a/INSTALL/VentoyGUI.x86_64 and b/INSTALL/VentoyGUI.x86_64 differ diff --git a/LinuxGUI/Ventoy2Disk/ventoy_gui.c b/LinuxGUI/Ventoy2Disk/ventoy_gui.c index 45bae969..d7da0db4 100644 --- a/LinuxGUI/Ventoy2Disk/ventoy_gui.c +++ b/LinuxGUI/Ventoy2Disk/ventoy_gui.c @@ -1318,6 +1318,16 @@ int main(int argc, char **argv) snprintf(g_log_file, sizeof(g_log_file), "%s/ventoy.log", env); touch_new_file(g_log_file); } + else + { + env = getenv("HOME"); + if (env && is_dir_exist("%s/.cache", env)) + { + g_xdg_log = 1; + snprintf(g_log_file, sizeof(g_log_file), "%s/.cache/ventoy.log", env); + touch_new_file(g_log_file); + } + } env = getenv("XDG_CONFIG_HOME"); if (env) @@ -1326,6 +1336,16 @@ int main(int argc, char **argv) snprintf(g_ini_file, sizeof(g_ini_file), "%s/Ventoy2Disk.ini", env); touch_new_file(g_ini_file); } + else + { + env = getenv("HOME"); + if (env && is_dir_exist("%s/.config", env)) + { + g_xdg_ini = 1; + snprintf(g_ini_file, sizeof(g_ini_file), "%s/.config/Ventoy2Disk.ini", env); + touch_new_file(g_ini_file); + } + } } }