where the ..._DATA_DIR and ..._RUNTIME_DIR prefix are the exe name in upper case and you need to go hunting under /snap for the full path to the exe and under ~/.config for the --user-data-dir for the exec line. Note different programs expect different values for --user-data-dir -- firefox and thunderbird wanted $HOME, for example.
For each snapped executable, I now write a wrapper. For example, chromium would use this:
#!/bin/sh -xeu DATA_DIR= $HOME RUNTIME_ DIR=$HOME current/ usr/lib/ chromium- browser/ chrome --user- data-dir= $HOME/. config/ chromium --class= "ChrUnsnapped" $@
export CHROMIUM_
export CHROMIUM_
exec /snap/chromium/
where the ..._DATA_DIR and ..._RUNTIME_DIR prefix are the exe name in upper case and you need to go hunting under /snap for the full path to the exe and under ~/.config for the --user-data-dir for the exec line. Note different programs expect different values for --user-data-dir -- firefox and thunderbird wanted $HOME, for example.