Export directory path grows longer with repeated object selection

Summary:

When preparing an object for export in Inkscape and using the Browse Export Directory button to select the export path, an issue occurs if I then select a different object and return to the original one. Each time I repeat this process, the export path becomes increasingly longer, with extra directory segments being appended to it.

For example, the intended path might be:

/home/vit/1/2/3/111.png

After switching objects a few times and reselecting the original one, the path becomes something like:

/home/vit/1/2/3/2/3/2/3/2/3/2/3/2/3/2/3/4/rect1.png

This seems to happen consistently and makes proper export difficult or impossible without manually correcting the path every time.

Steps to reproduce:

  • Open Inkscape
  • Save the file in a folder
  • Create an object to export as a PNG
  • Set the export path for the object to some folder that is different than the save folder
  • Create a duplicate of the object
  • Alternately select the objects one by one. The path will start to change.

What happened?

Export path grows, adding the folders to the path with each selection

What should have happened?

The export path has to stay the same

Sample attachments:

2025-04-26_01-31-47.mkv

Version info

Inkscape 1.4.1 (93de688d07, 2025-03-30)

                      Compile  (Run)
    GLib version:     2.84.0
    GTK version:      3.24.49 (3.24.49)
    glibmm version:   2.66.8
    gtkmm version:    3.24.10
    libxml2 version:  2.13.7
    libxslt version:  1.1.43
    Cairo version:    1.18.4 (1.18.4)
    Pango version:    1.56.3 (1.56.3)
    HarfBuzz version: 11.0.0 (11.0.0)

    OS version:       Manjaro Linux

Inkscape 1.4 (86a8ad7, 2024-10-11)

                      Compile  (Run)
    GLib version:     2.82.1
    GTK version:      3.24.43 (3.24.43)
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.12.9
    libxslt version:  1.1.42
    Cairo version:    1.18.2 (1.18.2)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 10.0.1 (10.0.1)

    OS version:       Windows 11 24H2