From 03645c81064b27d52eb9c125d8b76bcdce8f5cfb Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Fri, 17 Apr 2026 14:04:42 +0600 Subject: [PATCH] Configuration path automatically adds .ini if none were specified --- source/ubinstall-gtk-configuration-mode.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/ubinstall-gtk-configuration-mode.c b/source/ubinstall-gtk-configuration-mode.c index 3aecbbe..32311cf 100644 --- a/source/ubinstall-gtk-configuration-mode.c +++ b/source/ubinstall-gtk-configuration-mode.c @@ -21,6 +21,13 @@ int yon_configuration_path_check(const char *path){ } else { full_path = yon_char_new(path); } + { + if (!strstr(full_path,".")){ + char *temp = yon_char_append(full_path,".ini"); + free(full_path); + full_path = temp; + } + } if (access(full_path,F_OK)){ dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); data->action_text = homedir_create?CREATE_CONFIG_DIALOG_LABEL_HOMEDIR:CREATE_CONFIG_DIALOG_LABEL;