[Libreoffice-commits] core.git: sfx2/source

aybuke aybuke.147 at gmail.com
Sat Jan 23 00:35:24 PST 2016


 sfx2/source/control/unoctitm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit beea0484de87709da0814b4acd19527c8824f9b3
Author: aybuke <aybuke.147 at gmail.com>
Date:   Tue Jan 19 01:34:09 2016 +0200

    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 <jani at documentfoundation.org>
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: jan iversen <jani at documentfoundation.org>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 7a2616c..6e63bc7 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -674,7 +674,7 @@ class theUsageInfo : public rtl::Static<UsageInfo, theUsageInfo> {};
 /// Extracts information about the command + args, and stores that.
 void collectUsageInformation(const util::URL& rURL, const uno::Sequence<beans::PropertyValue>& 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;


More information about the Libreoffice-commits mailing list