Skip to content

Commit

Permalink
Use / path separator on Windows in export dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
gerritsangel committed Dec 3, 2024
1 parent 2702ef6 commit 080b636
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/imageio/storage/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ static void button_clicked(GtkWidget *widget,

// composed can now contain '\': on Windows it's the path separator,
// on other platforms it can be part of a regular folder name.
// This would later clash with variable substitution, so we have to escape them
gchar *escaped = dt_util_str_replace(composed, "\\", "\\\\");
// This would later clash with variable substitution.
// For now, let's use Linux '/' separator, as it also works on Windows.
gchar *escaped = dt_util_str_replace(composed, "\\", "/");

gtk_entry_set_text(GTK_ENTRY(d->entry), escaped);
// the signal handler will write this to conf
Expand Down

0 comments on commit 080b636

Please sign in to comment.