[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2023-11-20 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #18 from Matthias Seidel  ---
The "Target Milestone" is indeed 4.2.0, so you might want to test AOO
4.2.0-Dev4:
https://dist.apache.org/repos/dist/dev/openoffice/4.2.0-Dev4/binaries/

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2023-11-20 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #17 from ronyf  ---
Thank you! Tried it out, but ran into a problem where AOO did not find the
ooRexx scripting engine (from the editor window). Short of time, I cannot debug
that any further at the moment. 

Using the built-in BeanShell instead you can check for yourself that it does
not work by adding the result of System.getProperty("user.dir") to the string
that gets used to carry out the XTextRange.setString(...) method. 

E.g. change the statement in the BeanShell default script in line # 65 to:

   XTextRange.setString("Hello World (in BeanShell)"+" user.dir:
"+System.getProperty("user.dir"));

---

Also trying to create a Python script which interestingly is not possible on my
Mac (Python shows up in Tools -> Macros -> Organize Macros -> Python ..., but
the dialog does not allow for creating a Python script! (There is Python 3.11.5
installed as the default in the system, also the Apple SDKs 2.5, 2.6, 2.7
versions can be found.)

(So the fix is only in 2.0 beta not in 4.1.15.)

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2023-11-20 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

jeffouille  changed:

   What|Removed |Added

 CC||philip.e...@wanadoo.fr

--- Comment #16 from jeffouille  ---
A download link for the RC :
https://dist.apache.org/repos/dist/dev/openoffice/

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2023-11-20 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #15 from ronyf  ---
(In reply to Matthias Seidel from comment #14)
> There were some reports that this issue is fixed.
> 
> Can anyone confirm?

Would you have a download link for the RC?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2023-11-19 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #14 from Matthias Seidel  ---
There were some reports that this issue is fixed.

Can anyone confirm?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2021-05-30 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Keith N. McKenna  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

--- Comment #13 from Keith N. McKenna  ---
Setting as confirmed as we have already had 2 latest confirmed by entries

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2021-05-30 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Keith N. McKenna  changed:

   What|Removed |Added

 CC||k...@apache.org

--- Comment #12 from Keith N. McKenna  ---
Setting as confirmed as we have already had two latest confirmed by entries.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-12-06 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #11 from ronyf  ---
Sorry about "setupOOo.rxo": this is only valid when using the same installer as
the one for Linux and Windows (has an untested mode for MacOSX)!

The MacOSX installer uses
"/Applications/ooRexx.app/Contents/Resources/AOO_install_support.sh" to install
the ooRexx support on MacOSX to AOO.

There you will see the location at the top where it will try to find the AOO
directory. Adjust there if needed and re-run the script with sudo or using the
Installation menu of "BSF4ooRexxMenu":

- there will be an "ooRexx.app" in "Applications"; opening/clicking on it will
open the "BSF4ooRexxMenu" (implemented with Java) with the menu items "Open
Object Rexx", "BSF4ooRexx" and "Installation" 

- to reinstall BSF4ooRexx use "Installation" -> "Reinstall ooRexx support for
AOO/LO" on MacOSX, e.g. after updating the AOO installation to test against

Sorry for the confusion!

---

P.S.: Overhauling the installers (command line and MacOSX) has been on my loong
TODO-list so please bear with the current installation strategy.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-12-06 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Matthias Seidel  changed:

   What|Removed |Added

 Latest|4.1.7   |4.1.8
Confirmation in||

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-12-06 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #10 from ronyf  ---
Hi Jim,

yes, unfortunately, the problem on MacOS is still there with 4.1.8. 

Here a run of the ooRexx deafult macro script running as a macro off swriter
which queries the current directory and shows some environment variables (look
for "current directory=[/]" which gets inserted into the swriter document:

--- cut ---
Hello world [2020-12-06T14:19:58.743492], this is ooRexx (cf.
) speaking !
Infrastructure employed: [ooRexx 5.0.0 r12113 (28 Sep 2020) / BSF 641.20201022
/ Java 1.8.0_251, 64-bit / Darwin 18.7.0]. 
Operating system: [Darwin 18.7.0] 
current directory=[/]. 
current user=[rony]. 
current settings of environment variable
PATH=[.:.:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin]. 
... and now parsing the individual paths: 
  [.] 
  [.] 
  [/usr/bin] 
  [/bin] 
  [/usr/sbin] 
  [/sbin] 
  [/usr/local/bin] 
--- cut ---

In order to duplicate on MacOSX first a brief background: 

- ooRexx is an opensource object-oriented version of the IBM Rexx scripting
language (actually ooRexx is based on the opensourced IBM product)

- BSF4ooRexx is Java bridge for ooRexx using Apache BSF (and can also be used
via javax.script/JSR-223)

- BSF4ooRexx comes with support for AOO and installs ooRexx as a macro language
within AOO; there is also support for using AOO via the command line (you need
to run the AOO-ooRexx scripts after installation in a new session such that the
necessary change in the environment takes effect)

---

Now in your case if you have multiple versions of AOO installed on your Mac,
then the installer will consult "bsf4oorexx/install/setupOOo.rex" in the
routine "getOOoHomeDirMacOSX" at line # 1050 and use the following locations in
the following order to locate "soffice": 

- "/Applications/OpenOffice.app/Contents/MacOS"
- "/Applications/OpenOffice.org.app/Contents/MacOS"
- "/Applications/LibreOffice.app/Contents/MacOS" 

So you could manually change/add the location of AOO on your machine for which
you want ooRexx to be installed for. 

---

Here is what you would need to do on MacOSX:

1) get the BSF4ooRexx installation package for MacOSX which includes ooRexx
already: :
either click at the link on the very top, if browsing from a Mac or search the
file "b4r_641_500_64Bit_macosx-20201022-r12113.zip", download, unzip and
install

2) make sure AOO has been totally closed in between, start swriter, go into the
menu "Tools -> Macros -> Organize Macros" and you should have an entry
"ooRexx..." at the bottom, choose it:

- - select "My Macros" and click "Create..." accept the name "Library 1"
- - select "Library1" and click "Create ..." accept the name "Macro1.rxo"
- - select "Macro1.rxo" and click "Edit ..." such that the default macro
program gets loaded (it is quite flexible=complicated as that macro can be run
against all AOO modules, but also stand-alone from the command line: that macro
will query the current directory and write it with the other information into
the swriter document) and click "Run" at the bottom of the dialog containing
the code

---

If you have any questions, please do not hesitate to ask them!

---rony

P.S.: If I recall correctly in the past you were able to fix that for a 4.2
version.

P.P.S.: If you are interested in comparing that script e.g. on AOO on Linux,
then you would need to get the following parts:

- ooRexx 5.0 (the latest beta, which is faster and stabler than the old GA
version) from 
and install it (please note: the bitness of ooRexx must match the bitness of
your installed Java)

- BSF4ooRexx from
, if browsing
from Linux use the download link at the very top or download the file
"BSF4ooRexx_install_v641-20201124-beta.zip", unzip, go into
"bsf4oorexx/install/linux" and run "install.sh"

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-11-30 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #9 from Jim Jagielski  ---
Can you provide a test case which shows this?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-07-13 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Matthias Seidel  changed:

   What|Removed |Added

 Latest|4.1.6   |4.1.7
Confirmation in||

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-07-13 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #8 from ronyf  ---
(In reply to Matthias Seidel from comment #7)
> (In reply to ronyf from comment #6)
> > Great, will do and test, once ready for testing!
> 
> 4.1.7 was released last year, did you have the chance to test?

Hi Matthias, just removed all traces of AOO and LO from my Mac and downloaded
AOO 4.1.7 US english from Scourceforge and installed it.

Unfortunately, this bug has not been fixed for AOO 4.1.7 on MacOS, the current
directory is still "/".

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2020-07-13 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Matthias Seidel  changed:

   What|Removed |Added

 CC||msei...@apache.org

--- Comment #7 from Matthias Seidel  ---
(In reply to ronyf from comment #6)
> Great, will do and test, once ready for testing!

4.1.7 was released last year, did you have the chance to test?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2019-02-01 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #6 from ronyf  ---
Great, will do and test, once ready for testing!

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2019-01-31 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Jim Jagielski  changed:

   What|Removed |Added

  Flags||4.2.0_release_blocker+
   Target Milestone|--- |4.2.0
 Latest|--- |4.1.6
Confirmation in||

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2019-01-31 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #5 from Jim Jagielski  ---
The CWD is set to $HOME, or /tmp if the getenv for $HOME fails. This will be in
4.1.7 and the next 4.2.0-dev beta for macOS. Keeping this open until we can
confirm the fix works.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2019-01-31 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #4 from Jim Jagielski  ---
It would be super easy to force a chdir to $HOME in the code on macOS along
where we ensure $PATH has /usr/local/bin (BUGZ127965)... If expected behavior
is that scripts are run in $HOME, then this seems like a Good Idea :-)

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2019-01-31 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #3 from ronyf  ---
Hmm, good question. I think querying via
java.lang.System.getProperty("user.home") was affected, but I am really not
sure anymore!

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2019-01-31 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

Jim Jagielski  changed:

   What|Removed |Added

 CC||j...@apache.org

--- Comment #2 from Jim Jagielski  ---
What issues does this cause? The $HOME env-var is correctly set.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127966] MacOS: Current directory wrongly set to root directory "/" for scripts

2018-12-31 Thread bugzilla
https://bz.apache.org/ooo/show_bug.cgi?id=127966

--- Comment #1 from ronyf  ---
This issue may have the same cause as
.

-- 
You are receiving this mail because:
You are the assignee for the issue.