Bug 140946 - Save image pointing to LibreOfficeDev\4\user\gallery by default
Summary: Save image pointing to LibreOfficeDev\4\user\gallery by default
Status: RESOLVED DUPLICATE of bug 129564
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dialog-UX
  Show dependency treegraph
 
Reported: 2021-03-11 08:02 UTC by Telesto
Modified: 2023-10-09 15:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (70.68 KB, application/vnd.oasis.opendocument.text)
2021-03-11 08:02 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-03-11 08:02:14 UTC
Description:
Save image pointing to LibreOfficeDev\4\user\gallery by default

Steps to Reproduce:
1. Open the attached file
2. Right click the image -> Save Image -> Look at the directory

Actual Results:
LibreOfficeDev\4\user\gallery by default

Expected Results:
Images/Documents/last known directory but surely not the current spot


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: dc3b64dcbfb0a49c0be65bd8d73ed4e6d3828a21
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL
Comment 1 Telesto 2021-03-11 08:02:29 UTC
Created attachment 170402 [details]
Example file
Comment 2 Telesto 2021-03-11 08:02:55 UTC
@Heiko
Getting an EasyHack vibe here..
Comment 3 NISZ LibreOffice Team 2021-03-11 11:38:54 UTC
Confirming with 

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a889bca4a1912da1e402181d8acd6ef7683e2f53
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Insert - Image uses the same directory.

This comes from officecfg/registry/data/org/openoffice/Office/Paths.xcu see the key "Graphic".

Speculation:
using ($username) might help, although I'm unsure about how to set a Pictures component after it in a platform and locale-independent way.

We use (internally) this default config snippet:

<node oor:name="Paths">
  		<node oor:name="Graphic" oor:op="fuse">
	  		<prop oor:name="WritePath" oor:op="fuse">
		  		<value>file:///C:/Users/$(username)/Pictures</value>
  			</prop>
	  	</node> 
	  </node>

This works for us on Windows, but too hardcoded for straight upstreaming :).

Looking at framework/source/services/substitutepathvars.cxx might be needed too.
Comment 4 Telesto 2021-03-12 07:49:31 UTC
(In reply to NISZ LibreOffice Team from comment #3)
> Speculation:
> using ($username) might help, although I'm unsure about how to set a
> Pictures component after it in a platform and locale-independent way.

Is it not possible to mimic the save/save as/ file open behaviour (that working properly too)
Comment 5 Buovjaga 2023-10-09 15:26:13 UTC

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