User directory in different location for snappy and gpt

Hello,

we successfully set up a userdir different from default .snap, following instructions here

https://step.esa.int/main/toolboxes/snap/snap-faq/

and here

https://senbox.atlassian.net/wiki/spaces/SNAP/pages/138543106/How+to+move+.snap+directory+to+a+different+location

However, it perfectly works for SNAP desktop app but it does not have any effects on esasnappy and gpt. In fact, installed modules cannot be seen by esasnappy and gpt and they keep on creating .snap directory when invoked

(Linux system with SNAP 13)

Did you also update the gpt.vmoptions file or just the snap.config file?

dear @diana_harosa ,

yes, we added -J-Dsnap.userdir=/data/snap in …/etc/snap.conf and -Dsnap.userdir=/data/snap in gpt.vmoptions

sorry, we also added default_userdir=“/data/snap” in snap.conf and snap.userdir=/data/snap in snap.propertis