How to move .snap directory to a different location

For the SNAP Desktop:

Edit the snap.conf file in the etc folder of the SNAP installation directory. You need administration rights to edit this file.

Inside you see the default_options string.

Add -J-Dsnap.userdir=C:\temp\mySnapDir to it or the path to the location you want. In the end it will look like:

default_options="--branding snap --locale en_GB -J-XX:+AggressiveOpts -J-Xverify:none -J-Xms256M -J-Xmx11G -J-Dsnap.userdir=C:\temp\mySnapDir -J-Dnetbeans.mainclass=org.esa.snap.main.Main -J-Dsun.java2d.noddraw=true -J-Dsun.awt.nopixfmt=true -J-Dsun.java2d.dpiaware=false"


For gpt or pconvert:

Edit the corresponding gpt.vmoptions or the pconvert.vmoptions file. Both are located in the bin folder of the SNAP installation directory. Simply add the line:

-Dsnap.userdir=C:\temp\mySnapDir