Closed Bug 1788724 Opened 2 years ago Closed 8 months ago

[XDG portal] Save image does not remember last used folder, uses different folders

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 104
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jerry, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: helpwanted)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

Firefox 104 snap version on Ubuntu 22.04.1 with XFCE.
User agent string: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Right-click on an image and select Save Image As..., or have a tab that shows an image only and press Ctrl-S.

Actual results:

The Save As dialog is shown, opened in /run/user/1000/doc/90cada64/. Saving a next image might use that folder but it might also use another folder under /run/user/1000/doc/. I have not been able to see when it uses another folder.

When I change the folder and save the image and then try and save another image, it goes back to /run/user/1000/doc/ and then some folder beneath that. Sometimes the same as the last one, sometimes a new one or an existing one.

Expected results:

The Save As dialog should show the folder I saved the previous image in. Preferably even from a previous session.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3

Not sure this is actionable. File dialog code liver here:
https://searchfox.org/mozilla-central/source/widget/gtk/nsFilePicker.cpp
so any help/patch is welcome.

Keywords: helpwanted

Marking confirmed since I got an independent report of this from another user (in their case regarding the open-file picker).

See also:
https://github.com/flatpak/xdg-desktop-portal/issues/973
which was spun off of this closed issue:
https://github.com/flatpak/xdg-desktop-portal/issues/886

(Those are in flatpak rather than snap, but I think there's some commonalities & possibly a shared root cause.)

Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Save image does not remember last used folder, uses different folders → [XDG portal] Save image does not remember last used folder, uses different folders

Please check the xdg-desktop-portal version. In 1.18.0 and later this problem should be fixed.

Flags: needinfo?(jerry)

I hardly needed it anymore after dragging into Thunar worked, but I tested it and it works! :)
Thank you so much!

Flags: needinfo?(jerry)
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
See Also: → 1882079
You need to log in before you can comment on or make changes to this bug.