Bug 166017 - Exporting an image places it in the wrong folder
Summary: Exporting an image places it in the wrong folder
Status: RESOLVED DUPLICATE of bug 165917
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest
Depends on:
Blocks:
 
Reported: 2025-04-03 06:47 UTC by Derek Keats
Modified: 2025-04-03 14:32 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 Derek Keats 2025-04-03 06:47:08 UTC
With a recent upgrade, exporting a graphic from Draw, for example to JPG, SVG, PNG, etc., places it in the wrong folder. It seems to save to the folder that was last used for export, rather than the current folder you are working in. 

Steps to replicate:
1. Open example.odg in folder ~/example
2. Choose File|Export from the menu and export to ~/example/example.png
3. Open file example2.odg in folder ~/example2
4. Choose File|Export from the menu and don't select the folder, just export, and instead of going to ~/example2/example2.png it goes to ~/example/example2.png

Previously, the behaviour was correct. 

Consequense: This adds unnecessary steps to the workflow as the last used path may be far from the current path. There are no use cases that I can think of where this makes sense, as you are unlikely to want to save an image from one folder in the somewhat random last folder. It also leaves random images scattered on the hard drive as one doesn't always know what the last folder you used was. 

VERSION INFO
Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-ZA (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 1 Olivier Hallot 2025-04-03 12:01:31 UTC
Confirmed.

Needs bibisecting.

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 12; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 2 m_a_riosv 2025-04-03 12:08:28 UTC

*** This bug has been marked as a duplicate of bug 165917 ***