Bug 168346 - Saving image defaults to the directory for the last opened file instead of current directory
Summary: Saving image defaults to the directory for the last opened file instead of cu...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2025-09-10 11:43 UTC by David
Modified: 2025-09-13 09:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2025-09-10 11:43:28 UTC
Create a new file, insert an image, and save it. Then create another file and save it to a different directory, or open an already created file from a different directory. Go back to the first file and right-click on the image and save it. The file dialog box will open to the directory for the second file instead of the one for the first file.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0563d0e3581b5029cfe9476d5b5313d6322c5e08
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Xisco Faulí 2025-09-10 14:40:08 UTC
Thanks for reporting this issue.
This is a duplicated of bug 167897

*** This bug has been marked as a duplicate of bug 167897 ***
Comment 2 David 2025-09-10 15:42:38 UTC
This bug was specifically said to not be a duplicate of bug 167897. If this bug is part of that other bug then that bug needs to be reopened again as not being fully fixed.
Comment 3 David 2025-09-10 16:42:37 UTC
 Deleting my user configuration may have fixed it.
Comment 4 David 2025-09-10 16:50:44 UTC
I thought resetting my configuration may have fixed it, but it still is not correct. If I  create two files that contain images and save them to different directories and then right-click and save an image from each file to the directory for its document, then after closing and reopening the files and right clicking on an image again, it will still default to the last directory that was used to save an image instead of using the current document's directory.
Comment 5 BogdanB 2025-09-13 09:26:28 UTC
Marked as new, based on Samuel comment from bug 167897:
"Yep the logic discussed here applies only to Save as / Export.
There are lots of other file open dialogs, which just save the last used path without additional logic. If you consider that a bug, please open a new bug report for discussion."