| Summary: | Activate usage data collection from commandline | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Yousuf Philips (jay) (retired) <philipz85> |
| Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | aybuke.147, drichard, kendy, mentoring |
| Priority: | medium | Keywords: | difficultyBeginner, easyHack, skillCpp, topicUI |
| Version: | 5.1.0.0.beta1 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=140107 | ||
| Whiteboard: | ToBeReviewed | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 103266, 115712 | ||
|
Description
Yousuf Philips (jay) (retired)
2015-12-12 06:08:49 UTC
Env. variable would be preferred. The code where to add it is here: sfx2/source/control/unoctitm.cxx and add the getenv checking at the beginning of collectUsageInformation() function. Sounds great to me, just as easy for me to set. Hi everyone, I added "--usage-dump" in aCmdLineHelp_left array. http://opengrok.libreoffice.org/xref/core/desktop/source/app/cmdlinehelp.cxx#53 When run with this parameter LO, bCollecting must be true, as I understand it. http://opengrok.libreoffice.org/xref/core/sfx2/source/control/unoctitm.cxx#672 I have to do this, I think: if (!bCollecting) if(use --usage-dump) // Can you give an example of this control? bCollecting = true else return Am I trying to do the right function? Thank you. aybuke: Thank you for working on this!
Please use an environment variable (using getenv()), a command line parameter is an overkill here.
Ie. a code like
static bool bCollecting = getenv("LO_COLLECT_USAGE") != nullptr;
and then initiate the functionality based on that.
Thank you! - glad you are working on this :-)
aybuke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=beea0484de87709da0814b4acd19527c8824f9b3 tdf#96434 Activate usage data collection from commandline. It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. JanI is default CC for Easy Hacks (Add Jan; remove LibreOffice Dev List from CC) [NinjaEdit] Is this fixed then? I tested it and got the usage stats crash, so it must be functioning. |