To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=103963
                 Issue #|103963
                 Summary|Environ() on a Mac works for just a few variables, els
                        |e delivers empty values
               Component|scripting
                 Version|OOo 3.1
                Platform|Macintosh
                     URL|
              OS/Version|Mac OS X
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|kr
             Reported by|uwealtmann





------- Additional comments from uwealtm...@openoffice.org Sun Aug  2 21:26:30 
+0000 2009 -------
Using Environ("...") on a Mac works only on a handful of environmental 
variables like TMPDIR, USER, HOME. 
Using more specific ones like OSTYPE, MACHTYPE or BASH_VERSINFO it just returns 
an empty value. 
This is especially bad because these could be used to distinguish if we are 
running on a Mac or on Linux. 
Which is unfortunately not possible by getGuiType() :-(  
At least, InStrg(Environ("OSTYPE"), "darwin") would be a good guess to identify 
a Mac as host if 
Environ("OSTYPE") would return anything but an empty value when ran on a Mac.

Why  I want to distinguish Macs from Linux boxes? Just try "shell(open -g, 4, 
sPath)" on Linux  or 
"shell(nautilus, 4, sPath)" on a Mac.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@script.openoffice.org
For additional commands, e-mail: issues-h...@script.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to