diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-06-04 15:06:14 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-06-04 15:06:14 +0000 |
commit | d2d49238aeec1d70b3acd2eb38b0de9c255f8a14 (patch) | |
tree | 87c7a8b48a731249b40763761cf1043aa20bd8da /shell/source/backends | |
parent | bee2fa10dcdae1304af5b154174958ffd2103ea9 (diff) |
CWS-TOOLING: integrate CWS vcl102
pl: resync to m49
pl: #i102082# correct index access
pl: #i102082# correct index access
pl: merge tag
pl: #i101674# update selection background markers for toolbars and menus
pl: fix debug compile
pl: #i101461# improve xdg functionality (thanks oblin)
pl: #i100501# get IsAddStream from configuration setting in direct export case
pl: #i100725# check for null ptr
pl: #i100617# fix got lost in merge
Diffstat (limited to 'shell/source/backends')
-rw-r--r-- | shell/source/backends/gconfbe/gconflayer.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/shell/source/backends/gconfbe/gconflayer.cxx b/shell/source/backends/gconfbe/gconflayer.cxx index 4a0f6d6ae6..f6ad4fe776 100644 --- a/shell/source/backends/gconfbe/gconflayer.cxx +++ b/shell/source/backends/gconfbe/gconflayer.cxx @@ -396,16 +396,11 @@ sal_Bool SAL_CALL isDependencySatisfied( const ConfigurationValue aValue ) case SETTING_WORK_DIRECTORY: { - osl::Security aSecurity; - rtl::OUString aDocumentsDirURL; - if ( aSecurity.getHomeDir( aDocumentsDirURL ) ) - { - aDocumentsDirURL += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/Documents" ) ); - osl::Directory aDocumentsDir( aDocumentsDirURL ); + rtl::OUString aDocumentsDirURL = xdg_user_dir_lookup("DOCUMENTS"); + osl::Directory aDocumentsDir( aDocumentsDirURL ); - if( osl::FileBase::E_None == aDocumentsDir.open() ) - return sal_True; - } + if( osl::FileBase::E_None == aDocumentsDir.open() ) + return sal_True; } break; |