diff options
author | robxnano <12855608-robxnano@users.noreply.gitlab.com> | 2023-11-07 18:43:30 +0300 |
---|---|---|
committer | robxnano <12855608-robxnano@users.noreply.gitlab.com> | 2023-11-08 20:32:19 +0300 |
commit | 6c06f87665ca100c23e867df60aeefa244272229 (patch) | |
tree | 495efe294e77770fbdeeb45102c2a54c28bfdb28 /src | |
parent | 13651230b5b58b3988968868903a1736f6f2f212 (diff) |
export: Don't automatically add file extension
xdg-desktop-portal only allows access to the file named in the
save dialog. Removing this code allows for better compatibility
with sandboxing APIs.
Diffstat (limited to 'src')
-rw-r--r-- | src/remmina_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remmina_main.c b/src/remmina_main.c index 60fc4e47a..b4dd37233 100644 --- a/src/remmina_main.c +++ b/src/remmina_main.c @@ -1312,6 +1312,7 @@ void remmina_main_on_action_tools_export(GSimpleAction *action, GVariant *param, GTK_FILE_CHOOSER_ACTION_SAVE, _("_Save"), _("_Cancel")); gtk_native_dialog_set_modal(GTK_NATIVE_DIALOG(chooser), TRUE); remmina_set_file_chooser_filters(GTK_FILE_CHOOSER(chooser)); + gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(chooser), TRUE); export_name = g_strdup_printf("%s.rdp", remminamain->priv->selected_name); gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(chooser), export_name); g_free(export_name); |