Comment 26 for bug 1903957

Revision history for this message
Peter L Jones (peter-drealm) wrote :

For each snapped executable, I now write a wrapper. For example, chromium would use this:

#!/bin/sh -xeu
export CHROMIUM_DATA_DIR=$HOME
export CHROMIUM_RUNTIME_DIR=$HOME
exec /snap/chromium/current/usr/lib/chromium-browser/chrome --user-data-dir=$HOME/.config/chromium --class="ChrUnsnapped" $@

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.