Issue 95336 - "My Documents" path setting not applied
Summary: "My Documents" path setting not applied
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.0
Hardware: PC Windows Vista
: P3 Trivial (vote)
Target Milestone: OOo 3.2
Assignee: Olaf Felka
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 01:18 UTC by micawber
Modified: 2017-05-20 10:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description micawber 2008-10-23 01:18:50 UTC
If I change the default path for opening documents (the 'My Documents" path) to
W:\writerdocs — it is ignored. The change is saved in the Options, but when you
go to File-->Open, the program still looks in the old default location of
[User]\Documents.

This setting worked in the previous version of OO.

Quitting OO completely by restarting Quickstarter does not help.
Restarting Windows after the change does not help.

Bug apparent when opening docs from Writer or Calc. Have not tested other apps yet.

Using Vista SP1 OO
Using 3.00 Build 9358.
Comment 1 thorsten.martens 2008-10-23 09:52:46 UTC
TM->HRO: reproducible, please have a look, thanks.
Comment 2 micawber 2008-11-23 08:19:14 UTC
Can someone please change the status to CONFIRMED? Thanks.
Comment 3 kai.sommerfeld 2009-06-16 10:09:57 UTC
cd: Something for you?
Comment 4 carsten.driesner 2009-06-16 10:15:58 UTC
cd: Looks like it's related to file picker which must be adapted for Windows 7.
Therefore I will check this issue during the work on the file picker.
Comment 5 carsten.driesner 2009-06-23 14:55:29 UTC
cd->micawber: I think you describe the situation when you change the default
path for document via "Tools - Options - OpenOffice.org - Paths". I can also
reproduce your observation that "File - Open" "ignores" the new setting. The
problem is that this "works as designed" as the file dialog by default uses the
last used document path. If the last used document path is not set "My
Documents" is used as a fallback. Normally this doesn't happen as most users had
already opened a file before. I think there is an acceptable enhancement for
this situation which resets the last used document path whenever the user
changes the "My Document" path. What does you and the other voters think?
Comment 6 carsten.driesner 2009-06-29 10:57:26 UTC
cd: Set priority to P3 as there is no crash or data loss involved.
Comment 7 carsten.driesner 2009-07-14 13:49:47 UTC
cd: Fixed as good as possible. OOo now forces that the default path is set for
the file picker whenever the user changes the work directory via Tools - Options
- OpenOffice.org - Paths. This is only done once as the file dialog uses its own
recent list. It would violate Microsoft recommendations to force the dialog to
always use the work directory. See
http://msdn.microsoft.com/en-us/library/bb761828(VS.85).aspx for more information.
Comment 8 hennerdrewes 2009-07-15 11:20:48 UTC
@cd: tested the filepicker02 build on Vista Sp2, but haven't installed it with
system integration (using setup.exe /a).

In Draw, I created several shapes (rectangles, circles) and tried to export as
graphic files (emf, bmp).

With this fix, the file picker returns to the default graphics directory, when
opening the file picker. On subsequent calls to the file picker, this default
path is still opening, and not the path I used in the previous export. 

Furthermore, if I check the selection check box, it does not retain its checked
state in subsequent calls. 

After doing this procedure of choosing file, export, changing the export path to
the path of my choice, and performing the export, OOo crashes.

Comment 9 hennerdrewes 2009-07-15 11:34:58 UTC
@cd: If I am not completely wrong, the filepicker02 does not contain (all) the
fixes of filepicker01, so maybe the crashes are simply related to that.
Comment 10 hennerdrewes 2009-07-15 12:03:54 UTC
@cd: Actually it seems that the repetitive returning to the default path in
export is not connected to this issue and fix. Noticed it also in filepicker01. 

Need to think about that a little bit further and will file an extra issue later.
Comment 11 carsten.driesner 2009-07-15 12:28:28 UTC
@hennerdrewes: Yes, the fix is special for the "My Documents" path settings.
Currently the fix is "ugly" as there is no file picker UNO API to force setting
a folder. So there is a "workaround" to use the configuration to "notify" the
Vista file picker that the "My Documents" path has been changed. I don't like
the fix and won't apply this schema to all other paths. Due to restricted time
and help people with the special "My Documents" path I introduced this minor
fix. You can write a separate issue for the export file picker. Currently I
don't know what's wrong there.
Comment 12 hennerdrewes 2009-07-15 12:52:36 UTC
see Issue 103566 
Comment 13 carsten.driesner 2009-07-23 08:36:34 UTC
cd->of: Please verify. Keep in mind that the path is just used once after
changing the path in the path dialog. Afterwards the dialog shows the last used
directory, which conforms to Microsoft recommendation.
Comment 14 Olaf Felka 2009-07-24 14:56:53 UTC
of: looks good for me in cws filepicker02