From beea0484de87709da0814b4acd19527c8824f9b3 Mon Sep 17 00:00:00 2001 From: aybuke Date: Tue, 19 Jan 2016 01:34:09 +0200 Subject: tdf#96434 Activate usage data collection from commandline. Possible env variable: $ export LO_COLLECT_USAGE=1 Change-Id: Ic253850ca73551bad8b44072164881c5039615c9 Reviewed-on: https://gerrit.libreoffice.org/21596 Tested-by: jan iversen Tested-by: Jenkins Reviewed-by: jan iversen --- sfx2/source/control/unoctitm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 7a2616cc925d..6e63bc7c7bbd 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -674,7 +674,7 @@ class theUsageInfo : public rtl::Static {}; /// Extracts information about the command + args, and stores that. void collectUsageInformation(const util::URL& rURL, const uno::Sequence& rArgs) { - bool bCollecting = officecfg::Office::Common::Misc::CollectUsageInformation::get(); + bool bCollecting = getenv("LO_COLLECT_USAGE") || officecfg::Office::Common::Misc::CollectUsageInformation::get(); theUsageInfo::get().setCollecting(bCollecting); if (!bCollecting) return; -- cgit