Menu

#187 readonly code management requires system access

open-fixed
nobody
None
5
2008-09-16
2008-03-04
Selden Ball
No

The various readonly Lua code management functions require system access to be enabled. They should not. Only operations which modify the host system should require access permission.

For example,
require ("module name")
does not work from a CelX script unless requestsystemaccess has been called and gets an affirmative. This should not be necessary.

Discussion

  • Chris Laurel

    Chris Laurel - 2008-09-16

    Should be fixed by Vincent's change, SVN revision 4436. Waiting for confirmation of fix before closing.

     
  • Chris Laurel

    Chris Laurel - 2008-09-16
    • status: open --> open-fixed
     
  • Selden Ball

    Selden Ball - 2008-09-17

    require fails to locate required file

     
  • Selden Ball

    Selden Ball - 2008-09-17

    It doesn't ask for permission, but Windows Celestia r4445 can't find the required file if it's in the same directory as the requiring celx script, even though the error popup claims it's looking in the current directory.

    I've uploaded a test Addon, which includes a screengrab showing the directory containing the scripts and the error popup.

    File Added: test_require.zip

     

Log in to post a comment.