Understanding SNAP folder "var/snap" and "snap/"

Hello People,

i have a folder with my App (Name is ‘AppEngine’) binary, this folder has addional sub-folders (extensions) with libs. image When run my App (without SNAP) my executable, is searching for the libs in local ins sub-folder(extensions) where is the App located.

in the next step i pack my app (folder) into a SNAP with: image

the source folder is the same like my execution folder above.

image

teh command AppEngine is my executable App same like above

When lock into my runing SNAP logs “snap logs app-enigne” my App can not find the libs which are located in the sub-folder (extensions) mentions above, because:

SNAP excuts my App in "snap/app-enigne/x1/extensions

but is searching hte libs in "SNAP excuts my App in "var/snap/app-enigne/x1/extensions but why?

My App is searching the lib in the execution-path + sub-folder… but what i happening in the snap!?

what is missing in the snapcraft.ymal?

Many thanks