[snap] Improve OS integration (#1157)

Get back read-write access to `$HOME/.config/httpie` and `$HOME/.httpie`.
This commit is contained in:
Mickaël Schoentgen 2021-09-15 16:50:44 +02:00 committed by GitHub
parent 9dd0203bae
commit e2ba214ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,17 +83,22 @@ parts:
echo "Copying extra files ..."
cp $SNAPCRAFT_PART_SRC/extras/httpie-completion.bash $SNAPCRAFT_PRIME/bin/
# plugs:
# dot-config-httpie:
# interface: personal-files
# write:
# - $HOME/.config/httpie
plugs:
dot-config-httpie:
interface: personal-files
write:
- $HOME/.config/httpie
dot-httpie:
interface: personal-files
write:
- $HOME/.httpie
apps:
http:
command: bin/http
plugs: &plugs
# - dot-config-httpie
- dot-config-httpie
- dot-httpie
- home
- network
- removable-media