kosivantsov / omegat_scripts

Scripts for OmegaT
GNU General Public License v3.0
8 stars 4 forks source link

Customization -- java.io.IOException: plugins folder cannot be written to #13

Open msoutopico opened 4 years ago

msoutopico commented 4 years ago

Preconditions

Steps

Run OmegaT when the customization script is in the application_startup folder or run the customization script manually.

Expected results

The script downloads the jar files and puts them in the plugins folder, which is empty.

Actual results

The script downloads the jar files bundle, unzips it and then says the plugins folder in the user customization folder cannot be written to, and keeps running forever.

The console gives the error below:

========================================
          Customisation Update
========================================
Fresh customisation bundle installation (v.53_cs0):
* Config needs to be installed.
* Scripts need to be installed.
* Plugins needs to be updated.
----------------------------------------
config.zip is being downloaded...
config.zip is being unpacked...
Customisation is being updated...
OmegaT will need to be restarted.
    -- Done --
----------------------------------------
scripts.zip is being downloaded...
scripts.zip is being unpacked...
Scripts are being installed...
Scripts provided 
in the customisation bundle 
copied to 
  /Users/pico/Library/Preferences/OmegaT/scripts.
    -- Done --
----------------------------------------
plugins.zip is being downloaded...
plugins.zip is being unpacked...
Plugins are being installed...
An error occurred
javax.script.ScriptException: javax.script.ScriptException: java.io.IOException: Destination '/Users/pico/Library/Preferences/OmegaT/plugins' cannot be written to