Use zypak-wrapper instead of disabling sandbox

Also move `TMPDIR` to `$XDG_RUNTIME_DIR/app/$FLATPAK_ID` which is better because it's not persistent as original `/tmp` would be.
This commit is contained in:
Erick555 2020-02-27 12:07:13 +00:00 committed by Bartłomiej Piotrowski
parent ba33ff7a95
commit 87c3dd1781

View file

@ -30,7 +30,8 @@ modules:
- type: script
dest-filename: bitwarden.sh
commands:
- 'exec env TMPDIR=$XDG_CACHE_HOME /app/Bitwarden/bitwarden --no-sandbox "$@"'
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper /app/Bitwarden/bitwarden "$@"
- type: file
path: com.bitwarden.desktop.appdata.xml
buildsystem: simple