Bug 37338 - grep for getenv(), list all LibO-specific vars you find on the wiki
Summary: grep for getenv(), list all LibO-specific vars you find on the wiki
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: WWW (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: yassine benabbas
URL:
Whiteboard:
Keywords: easyHack
Depends on:
Blocks:
 
Reported: 2011-05-18 16:09 UTC by Markus Mohrhard
Modified: 2016-05-16 20:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
environment vars used in getnenv (2.32 KB, application/x-gzip)
2012-07-22 22:42 UTC, yassine benabbas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Mohrhard 2011-05-18 16:09:46 UTC
We need to add some information about all LibreOffice specific environment variables to the wiki. Additionally it would be good to document what they do.

An example is:
SAL_NO_MOUSEGRABS

There is this page with old OpenOffice Environment Variables, but they are only a starting point and may be outdated.
Comment 1 Björn Michaelsen 2011-12-23 12:02:29 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 2 yassine benabbas 2012-07-22 22:42:53 UTC
Created attachment 64515 [details]
environment vars used in getnenv

Hi,
 Here are the vars. I used this command on the core folder

grep -r -h -I -o 'getenv[ ]*([ ]*"[A-Z0-9_]\+' . | grep -o '[A-Z0-9_]\+' | sort -u

Where is the wiki page where we put them?
Comment 3 Markus Mohrhard 2012-07-22 22:56:11 UTC
(In reply to comment #2)
> Created attachment 64515 [details]
> environment vars used in getnenv
> 
> Hi,
>  Here are the vars. I used this command on the core folder
> 
> grep -r -h -I -o 'getenv[ ]*([ ]*"[A-Z0-9_]\+' . | grep -o '[A-Z0-9_]\+' | sort
> -u
> 
> Where is the wiki page where we put them?

Great work. Just create a new wiki page nad mention it here. I'll link it into the appropiate development page.

Are you interested in writing some comments to some of these variables explaining what they do? For most of them it sould be easy to get an idea about them by the name and where they are used in the code.
Comment 4 yassine benabbas 2012-07-23 10:55:55 UTC
Hi,
 Here is the wiki page: https://wiki.documentfoundation.org/Environment_variables
 I am interested in writing comments.
Comment 5 Rainer Bielefeld Retired 2012-07-26 19:04:45 UTC
"Assigned" due to facts
Comment 6 Thomas Arnhold 2013-06-27 17:31:06 UTC
Updated the list and the command line to use git grep. Mark this as fixed.
Comment 7 Robinson Tryon (qubit) 2015-12-18 10:02:10 UTC
Migrating Whiteboard tags to Keywords: (EasyHack)
[NinjaEdit]
Comment 8 Markus Raab 2016-05-16 12:14:09 UTC
Hi,

Do you think that a bare list of the environment variables gives the user enough information about how to use it?

Additionally, the list is incomplete, e.g. there are aliases introduced in fpicker/source/office/iodlg.cxx
getEnvironmentValue which enquires "WorkDirMustContainRemovableMedia".

Do you think some of these variables are outdated/useless now and should be removed rather than documented? Would it be useful to open new issues for getenv Variables that cannot be used anymore?
Comment 9 Markus Mohrhard 2016-05-16 20:15:31 UTC
(In reply to Markus Raab from comment #8)
> Hi,
> 
> Do you think that a bare list of the environment variables gives the user
> enough information about how to use it?
> 
> Additionally, the list is incomplete, e.g. there are aliases introduced in
> fpicker/source/office/iodlg.cxx
> getEnvironmentValue which enquires "WorkDirMustContainRemovableMedia".
> 
> Do you think some of these variables are outdated/useless now and should be
> removed rather than documented? Would it be useful to open new issues for
> getenv Variables that cannot be used anymore?

This is not about users. Please don't change the state of this bug.