summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-01-20 11:12:12 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-02-03 10:16:14 +0100
commitc51a43bd70aa9fec0a051e51622a6a91f5aaa1a9 (patch)
treeb4c0d42815477f45aa7389f5ff1d7422ea48a3c9 /desktop/source/pkgchk/unopkg/unopkg_misc.cxx
parentb16faa4dcd87b9c7203b230a9feaebbb05c5a9cb (diff)
tdf#129917 Use temp user profile when installing shared extensions
Change-Id: I62dd163758e6348a62fc8a0b25150a62f282de90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86543 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_misc.cxx')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index 50b6c58d9190..df276342b765 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -407,13 +407,12 @@ static OUString getLockFilePath()
}
Reference<XComponentContext> getUNO(
- bool verbose, bool shared, bool bGui,
+ bool verbose, bool bGui, const OUString& sTempDir,
Reference<XComponentContext> & out_localContext)
{
// do not create any user data (for the root user) in --shared mode:
- if (shared) {
- rtl::Bootstrap::set("CFG_CacheUrl", OUString());
- }
+ if (!sTempDir.isEmpty())
+ rtl::Bootstrap::set("UserInstallation", sTempDir);
// hold lock during process runtime:
static ::desktop::Lockfile s_lockfile( false /* no IPC server */ );