Description: Instead of using the default source directory of an opened file to "save as" and "export to pdf" in the same source folder, LibreOffice changes its behavior, and whereas the document has been saved or not, sometimes uses the source folder, sometimes the last folder used for "save as" or "export to pdf", which can be different ! Steps to Reproduce: Hi, regarding the discussions about the new feature introduced temporarily in version 25.2.2 with "Saves as" and "Export to pdf" proposing by default not the current same folder as the one containing the original opened file, but the last folder used for each operation "Save as" and "pdf export", version 25.8 aimed to put a new behavior : https://bugs.documentfoundation.org/show_bug.cgi?id=165917#c48 When calling an Export dialog (PDF, epub, ...) the following folder will be preselected: For stored documents: * Current document directory * If another directory was chosen for the export, that directory will be preselected for subsequent exports (stored only during runtime - per document) For unstored documents: * The last used export directory is restored (last used in unsaved doc) But it doesn' t work like this for me in LO 25.8.0.2 on Ubuntu 25.10 (development version) Actual Results: The way LO handles "Save as" and "Export pdf" is far worse now than the modified behavior introduced in version 25.2.2, because LibreOffice doesn't act identically on a same document regarding the chronological order : Simple case: I open a LO document in folder A 1- Without modifying it, I click on "Save as", LO shows me on the window by default the same folder A, if I click then on "Export to pdf", the same - LO shows me by default folder A 2- I write on the document - modify it and, WITHOUT saving it, again if I click on "Save as", LO shows me on the window by default the same folder A, if I click then on "Export to pdf", the same - LO shows me by default folder A. Until now, logical, perfect and the same behavior as before 25.2.2 3- I save the same document (Ctrl-S or "Edit - Save", not "Save as"), it overwrites the file in folder A, I let it opened and again click on "Save as" → this time LO shows me on the window by default the folder B, and if I click on "Export to pdf", LO show me by default folder C * * if the last time the folders when I last "saved as" or "exported as pdf" documents were not the same (because I don't export to pdf all the documents I open, modify and save). So, instead of having all my LO and pdf files for this specific document in the same original folder, I now have files in 3 different folders - a complete mess ! And open a document, modify it, save it, then export to pdf (in this order) is a very common task, I do it every day for dozen of files in many different sub-folders. This behavior, which changes for a SAME opened document whereas it has been saved or not, is completely un-logical and unexpected. Expected Results: It introduces a major change, without explanation, on a major function - saving and exporting files, which breaks with the previous 20 years and the behavior of other software. For example, if I open an image with Gimp, I modify it, save the xcf then export in png, Gimp always proposes me by default the source directory where the original image is stored.And also if I open and work on many images at the same time, in different (sub)-folders, coming from one to others: each time save and export are proposed for each image in their respective current same origin folder. Like I explained just above, LibreOffice not only behaves differently regarding the situation, but worse: for a SAME opened document, it doesn't act identically and changes the default "save as" / "export to pdf" folder even while using a single file, depending on whether or not it has been saved (Ctrl-S). The change introduced in 25.2.2 was questionable, but at least in my memory it was consistent. Now it's a complete garbage in my Files explorer: every day I open, sometimes simultaneously, many odt and calc files, that I modify, save, export in pdf, then re-modify again, coming back from one to another, sometimes after having closed and reopened them, sometimes after having let them opened between the changes. So: Sometimes LO proposes me the source directory by default, sometimes the last folder where I "Saved as" or "exported to pdf" - folders which can be different, and more important, LO changes this last folder many times in the same day - when I notice on the window opened for saving / exporting to pdf and puts the export in the same current folder as the source file, it changes the "last folder used" for the following ones… ! As I don't notice every time - I'm used to save / export to pdf and expect the pdf created / replaced in the same current source folder, it happens that: for some documents I have the odt / calc source in folder A, updated saved as odt / calc in folder B, exported pdf in folder C. And sometimes with multiple copies because those initially on folder A still exist. So when I work on many projects / files on many different sub-folders, a big work is then necessary to reorganize all of them and move on the right origin folders, with a particular attention to replace in folder A with the most recent version ! It's completely unmanageable. :( Reproducible: Always User Profile Reset: No Additional Info: If the option to have an unique directory for all "saved as" and "exported to pdf" files - folders which can be different for each action - is useful for some people, it should be introduced as an option in the settings, not activated by default, and not change in LO version update. I don't understand if it works as intended, if yes how could have such an idea been implemented, or if it doesn't and if it's a bug ?… Thanks in advance for your help and for your great work on LibreOffice !
I test now 26.2, which is somehow similar with 25.8 at this moment. - Restart in Safe Mode. For stored documents: (saved on Desktop) * Current document directory (exported on Desktop) * If another directory was chosen for the export, (Pictures) that directory will be preselected for subsequent exports (stored only during runtime - per document) (---> Pictures) For unstored documents: * The last used export directory is restored (last used in unsaved doc) ----> Documents (linux) Seems ok on linux. But I remembered I tested 25.8 version on Windows and was not ok, so I come back to 25.2. Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 6204dfeb53aefbc4de1c82a6bfc2f6903565f5c1 CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Xavier, please try to reset to factory settings, because some settings can interfere from the last version with the new version. And test again all your tests. ---> Help - restart in safe mode - and check the 2 options from factory settings
Hi, I restarted in safe mode, checked the 2 options from factory settings and reset them. Then I open a LO odt document D1 in folder A 1- Without modifying it, I click on "Save as", LO shows me on the window by default the same folder A, if I click then on "Export to pdf", the same - LO shows me by default folder A 2- I write on the document - modify it and, WITHOUT saving it, again if I click on "Save as", LO shows me on the window by default the same folder A, if I click then on "Export to pdf", the same - LO shows me by default folder A. Until now, logical, perfect and the same behavior as before 25.2.2 3- I save the same document (Ctrl-S or "Edit - Save", not "Save as"), it overwrites the file D1 in folder A, I let it opened and again click on "Save as" → this time LO shows me on the window by default the folder "home/Documents", I change to save it on folder A (overwriting the previous one here), and then if I click on "Export to pdf", LO also shows me by default "home/Documents", I export it in pdf in a folder B. So here, even after having reset the factory settings, there is a bug: LibreOffice proposes me a different directory than its source for a stored document, after I modified it, saved it and without closing it, tries "Save as" and "Export to pdf". First problem. On your tests, have you done my N° 3 manipulation ? Here comes the problem and the inconsistent behavior on a same document: LO considers the document as unstored if it has been opened and saved with "Edit - Save" command, it should still be treated as a stored document. 4- I open a odt document D2 on folder C. Without modifying it, I click on "Save as", LO shows me on the window by default the same folder C, if I click then on "Export to pdf", the same - LO shows me by default folder C 5- I write on the document - modify it and, WITHOUT saving it, again if I click on "Save as", LO shows me on the window by default the same folder C, if I click then on "Export to pdf", the same - LO shows me by default folder C. 6- I save the same document (Ctrl-S or "Edit - Save", not "Save as"), it overwrites the file D2 in folder C, I let it opened and again click on "Save as" → this time LO shows me on the window by default the folder A (the last used for "save as" with Document D1), and if I click on "Export to pdf", LO shows me by default the folder B (the last used for export with D1, different) ! So here if I'm not vigilant I can begin to have origin D2 document on folder C, updated "saved as" D2 document on folder A, and pdf exported on folder B. One document, 3 files, 3 folders - a garbage ! So I confirm the bug on Ubuntu and LO 25.8.0.2…
It is not only a mess, it also not the way it is intended and documented, according to https://bugs.documentfoundation.org/show_bug.cgi?id=165917#c48 To my understanding, the above documentation requires, in that order: * If a folder was explicitely selected in an earlier "export as" in the same session for the same document, then that folder should be the default for "export as". * Else, if the document was newly created (not loaded) and was never saved or exported anywhere, then the folder used for the last "export as" (globally for any document) should be the default for "export as". * Else, in all other cases, the folder where the document was last loaded from, or saved to by "save", or saved to by "save as" (i.e. the current document folder) should be the default for "export as". * This behaviour remains the same no matter if the document was modified or not since last being loaded, saved or exported. Correct me if I'm wrong. This behaviour makes sense to me, that's what we want. So the required/desired/documented behaviour is obviously different from the behaviour observed here.
(In reply to Klaus Kusche from comment #4) > It is not only a mess, it also not the way it is intended and documented, > according to https://bugs.documentfoundation.org/show_bug.cgi?id=165917#c48 Hi, yes the way it is intended sounds more logical, but it's not what I get on LO 25.8.0.2 in Ubuntu 25.10 From what I've observed, the problem occurs here: > Else, in all other cases, the folder where the document was last loaded > from, or saved to by "save", or saved to by "save as" (i.e. the current > document folder) should be the default for "export as". > This behaviour remains the same no matter if the document was modified or > not since last being loaded, saved or exported. What Lo doesn't respect in my case is the "or saved to by "save" → here, after having opened, modified the document and "saved" (not saved as) and let it opened, LO treats it like an unstored document, instead of continuing exporting (save as and/or pdf) in the same current source directory…