Are you running the script as root or as a regular user? Note that $SNAP_DATA is designed for services (only one instance of the data exists) while $SNAP_USER_DATA is, as the name says, for per-user data.
Do you have a suggestion why on the Ubuntu desktop these keys pass normally, but on Ubuntu-core gives an error?
Without keys, can not run the application, it’s a problem.
Maybe in cases with work in Ubuntu-core I need to transfer these keys differently to run in the script?
Yes, I have the same script.
Because the function of running this application is to run the binary
$SNAP/bin/./CORE
and send the keys to the binaries indicating where to create the data files:
-D “data path”
-S (create files with key. PrimaryKey and SecondaryKey)
-T “temp path”
Perhaps in the case of snap, keys must be transferred in another way?
But in cases of launch on Ubuntu desktop, this works as it should.
Problema, why in snap it’s not working?
This is the same function for the application, run it through the keys that are required.
A quick shoot in the dark, does it work if you put the whole command to run in a wrapper script and then run your script from the command in your apps declaration?
The denial is irrelevant to the problem at hand. You need to figure out what’s missing in the library path. You app didn’t start because it did not find the right symbol. This is something you have to investigate. Which library holds that symbol, where is that library, what is LD_LIBRARY_PATH when you start?
P.S. Another mistake that is interesting is that of locale. But I do not think that it can affect the launch of the application.
xkbcommon: ERROR: couldn’t find a Compose file for locale “C.UTF-8”
xkbcommon: ERROR: couldn’t find a Compose file for locale “C.UTF-8”
I really hope if you tell me what I missed or did not see.
Thx.
Again, this is something you have to investigate. See what is set at runtime (snap run --shell your-snap-name; run env and explore), see if something strikes you as odd. If you can reduce this to a simple example that I can run I can try to debug that.
I’m a bit swamped with tasks lately and I cannot promise to look at this today. I’ve added it to my backlog and I’ll try to check it out in the next few days.