summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-07-13 11:31:14 +0000
committerOliver Bolte <obo@openoffice.org>2006-07-13 11:31:14 +0000
commitd10e4be661f008f5c32bd5f14dded158a5c802aa (patch)
tree1c9b44a662da75195e812fe7b82ef4b03e9ec12b /shell
parent242a4dd831187a81ea56b468d2b7628eb63383fe (diff)
INTEGRATION: CWS pathoptions01 (1.7.10); FILE MERGED
2006/07/11 12:04:22 obr 1.7.10.1: #i66461# has moved to Paths.xcs
Diffstat (limited to 'shell')
-rw-r--r--shell/source/backends/gconfbe/gconflayer.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/source/backends/gconfbe/gconflayer.cxx b/shell/source/backends/gconfbe/gconflayer.cxx
index 60ae66c1f527..2f90fb1f71c2 100644
--- a/shell/source/backends/gconfbe/gconflayer.cxx
+++ b/shell/source/backends/gconfbe/gconflayer.cxx
@@ -136,7 +136,11 @@ uno::Any translateToOOo( const ConfigurationValue aValue, GConfValue *aGconfValu
case SETTING_WORK_DIRECTORY:
{
- return uno::makeAny( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "$(work)/Documents" ) ) );
+ osl::Security aSecurity;
+ rtl::OUString aDocumentsDirURL;
+ if ( aSecurity.getHomeDir( aDocumentsDirURL ) )
+ aDocumentsDirURL += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/Documents" ) );
+ return uno::makeAny( aDocumentsDirURL );
}
case SETTING_USER_GIVENNAME: